Update RTD MkDocs (#3457)
* Modernize docs * Remove old style hacks * Add comment
This commit is contained in:
parent
fa6fd1a41b
commit
eb56f6237b
|
@ -9,9 +9,17 @@ app/
|
||||||
components/*/.output/
|
components/*/.output/
|
||||||
tools/toolchains
|
tools/toolchains
|
||||||
extmods.ini
|
extmods.ini
|
||||||
|
.ccache
|
||||||
|
bin
|
||||||
|
|
||||||
#ignore Eclipse project files
|
#ignore Eclipse project files
|
||||||
.cproject
|
.cproject
|
||||||
.project
|
.project
|
||||||
.settings/
|
.settings/
|
||||||
|
|
||||||
|
# ignore VS Code files
|
||||||
.vscode/**
|
.vscode/**
|
||||||
|
|
||||||
|
# ignore IDEA files
|
||||||
|
.idea
|
||||||
|
*.iml
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
# .readthedocs.yaml
|
||||||
|
# Read the Docs configuration file
|
||||||
|
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
||||||
|
|
||||||
|
# Required
|
||||||
|
version: 2
|
||||||
|
|
||||||
|
mkdocs:
|
||||||
|
configuration: mkdocs.yml
|
||||||
|
|
||||||
|
# Optionally set the version of Python and requirements required to build your docs
|
||||||
|
python:
|
||||||
|
version: "3.7"
|
||||||
|
install:
|
||||||
|
- requirements: docs/requirements.txt
|
|
@ -1,42 +1,7 @@
|
||||||
blockquote {
|
/*https://github.com/mkdocs/mkdocs/issues/2538*/
|
||||||
padding: 0 15px;
|
.wy-menu-vertical header,
|
||||||
color: #777;
|
.wy-menu-vertical p.caption {
|
||||||
border-left: 4px solid #ddd;
|
color: #55a5d9;
|
||||||
}
|
|
||||||
|
|
||||||
.rst-content blockquote {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*shifts the nested subnav label to the left to align it with the regular nav item labels*/
|
|
||||||
ul.subnav ul.subnav span {
|
|
||||||
padding-left: 1.3em;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
font-size: 100%;
|
|
||||||
}
|
|
||||||
p {
|
|
||||||
line-height: 20px;
|
|
||||||
margin-bottom: 16px;
|
|
||||||
}
|
|
||||||
h1, h2 {
|
|
||||||
border-bottom: 1px solid #eee;
|
|
||||||
line-height: 1.2;
|
|
||||||
margin-top: 1.2em;
|
|
||||||
margin-bottom: 16px;
|
|
||||||
}
|
|
||||||
h3, h4, h5, h6 {
|
|
||||||
margin: 1em 0 0.7em 0;
|
|
||||||
}
|
|
||||||
code {
|
|
||||||
font-size: 85%;
|
font-size: 85%;
|
||||||
margin-right: 3px;
|
margin: 12px 0 0;
|
||||||
}
|
}
|
||||||
table.docutils td code {
|
|
||||||
font-size: 100%;
|
|
||||||
}
|
|
||||||
.wy-plain-list-disc, .rst-content .section ul, .rst-content .toctree-wrapper ul, article ul {
|
|
||||||
line-height: 20px;
|
|
||||||
margin-bottom: 16px;
|
|
||||||
}
|
|
Binary file not shown.
After Width: | Height: | Size: 116 KiB |
|
@ -43,9 +43,11 @@ var nodemcu = nodemcu || {};
|
||||||
* replaces the relative path with an absolute path based on the selected branch.
|
* replaces the relative path with an absolute path based on the selected branch.
|
||||||
*/
|
*/
|
||||||
function replaceRelativeLinksWithStaticGitHubUrl() {
|
function replaceRelativeLinksWithStaticGitHubUrl() {
|
||||||
var relativePath = "../../..";
|
var relativePath = "../..";
|
||||||
var gitHubPath = "https://github.com/nodemcu/nodemcu-firmware/tree/" + determineSelectedBranch();
|
var gitHubPath = "https://github.com/nodemcu/nodemcu-firmware/tree/" + determineSelectedBranch();
|
||||||
var gitHubLinks = $("a[href^='" + relativePath + "']").each(function (index) {
|
// 'div.section' denotes the container into which doc pages are integrated i.e. "the content" w/o navigation,
|
||||||
|
// header, breadcrumbs, footer, etc. It's important that only links in this very section are manipulated.
|
||||||
|
var gitHubLinks = $("div.section a[href^='" + relativePath + "']").each(function (index) {
|
||||||
var url = $(this).attr('href');
|
var url = $(this).attr('href');
|
||||||
$(this).attr('href', url.replace(relativePath, gitHubPath));
|
$(this).attr('href', url.replace(relativePath, gitHubPath));
|
||||||
});
|
});
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
mkdocs==1.2.2
|
115
mkdocs.yml
115
mkdocs.yml
|
@ -4,69 +4,70 @@ repo_url: https://github.com/nodemcu/nodemcu-firmware/
|
||||||
|
|
||||||
theme:
|
theme:
|
||||||
name: "readthedocs"
|
name: "readthedocs"
|
||||||
|
hljs_languages:
|
||||||
|
- lua
|
||||||
strict: false
|
strict: false
|
||||||
|
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
#http://pythonhosted.org/Markdown/extensions/admonition.html
|
#http://pythonhosted.org/Markdown/extensions/admonition.html
|
||||||
- admonition:
|
- admonition:
|
||||||
- toc:
|
- toc:
|
||||||
permalink: True
|
permalink: True
|
||||||
|
|
||||||
#requird due to https://github.com/rtfd/readthedocs.org/issues/1313
|
|
||||||
#see http://mkdocs.readthedocs.org/en/latest/user-guide/styling-your-docs/#customising-a-theme
|
#see http://mkdocs.readthedocs.org/en/latest/user-guide/styling-your-docs/#customising-a-theme
|
||||||
extra_css:
|
extra_css:
|
||||||
- css/extra.css
|
- css/extra.css
|
||||||
extra_javascript:
|
extra_javascript:
|
||||||
- js/extra.js
|
- js/extra.js
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
- Overview: 'index.md'
|
- Overview: 'index.md'
|
||||||
- Basics:
|
- Basics:
|
||||||
- Building the firmware: 'build.md'
|
- Building the firmware: 'build.md'
|
||||||
- Flashing the firmware: 'flash.md'
|
- Flashing the firmware: 'flash.md'
|
||||||
- Uploading code: 'upload.md'
|
- Uploading code: 'upload.md'
|
||||||
- JTAG debugging: 'debug.md'
|
- JTAG debugging: 'debug.md'
|
||||||
- Support: 'support.md'
|
- Support: 'support.md'
|
||||||
- FAQs:
|
- FAQs:
|
||||||
- Lua Developer FAQ: 'lua-developer-faq.md'
|
- Lua Developer FAQ: 'lua-developer-faq.md'
|
||||||
- Extension Developer FAQ: 'extn-developer-faq.md'
|
- Extension Developer FAQ: 'extn-developer-faq.md'
|
||||||
- Whitepapers:
|
- Whitepapers:
|
||||||
- Filesystem on SD card: 'sdcard.md'
|
- Filesystem on SD card: 'sdcard.md'
|
||||||
- Writing external C modules: 'modules/extmods.md'
|
- Writing external C modules: 'modules/extmods.md'
|
||||||
- C Modules:
|
- C Modules:
|
||||||
- 'adc': 'modules/adc.md'
|
- 'adc': 'modules/adc.md'
|
||||||
- 'bit': 'modules/bit.md'
|
- 'bit': 'modules/bit.md'
|
||||||
- 'bthci': 'modules/bthci.md'
|
- 'bthci': 'modules/bthci.md'
|
||||||
- 'can': 'modules/can.md'
|
- 'can': 'modules/can.md'
|
||||||
- 'crypto': 'modules/crypto.md'
|
- 'crypto': 'modules/crypto.md'
|
||||||
- 'dac': 'modules/dac.md'
|
- 'dac': 'modules/dac.md'
|
||||||
- 'dht': 'modules/dht.md'
|
- 'dht': 'modules/dht.md'
|
||||||
- 'encoder': 'modules/encoder.md'
|
- 'encoder': 'modules/encoder.md'
|
||||||
- 'eth': 'modules/eth.md'
|
- 'eth': 'modules/eth.md'
|
||||||
- 'file': 'modules/file.md'
|
- 'file': 'modules/file.md'
|
||||||
- 'gpio': 'modules/gpio.md'
|
- 'gpio': 'modules/gpio.md'
|
||||||
- 'http': 'modules/http.md'
|
- 'http': 'modules/http.md'
|
||||||
- 'i2c': 'modules/i2c.md'
|
- 'i2c': 'modules/i2c.md'
|
||||||
- 'i2s': 'modules/i2s.md'
|
- 'i2s': 'modules/i2s.md'
|
||||||
- 'ledc': 'modules/ledc.md'
|
- 'ledc': 'modules/ledc.md'
|
||||||
- 'mqtt': 'modules/mqtt.md'
|
- 'mqtt': 'modules/mqtt.md'
|
||||||
- 'net': 'modules/net.md'
|
- 'net': 'modules/net.md'
|
||||||
- 'node': 'modules/node.md'
|
- 'node': 'modules/node.md'
|
||||||
- 'ota': 'modules/otaupgrade.md'
|
- 'ota': 'modules/otaupgrade.md'
|
||||||
- 'ow (1-Wire)': 'modules/ow.md'
|
- 'ow (1-Wire)': 'modules/ow.md'
|
||||||
- 'pulsecnt': 'modules/pulsecnt.md'
|
- 'pulsecnt': 'modules/pulsecnt.md'
|
||||||
- 'qrcodegen': 'modules/qrcodegen.md'
|
- 'qrcodegen': 'modules/qrcodegen.md'
|
||||||
- 'sdmmc': 'modules/sdmmc.md'
|
- 'sdmmc': 'modules/sdmmc.md'
|
||||||
- 'sigma delta': 'modules/sigma-delta.md'
|
- 'sigma delta': 'modules/sigma-delta.md'
|
||||||
- 'sjson': 'modules/sjson.md'
|
- 'sjson': 'modules/sjson.md'
|
||||||
- 'sodium': 'modules/sodium.md'
|
- 'sodium': 'modules/sodium.md'
|
||||||
- 'spi': 'modules/spi.md'
|
- 'spi': 'modules/spi.md'
|
||||||
- 'struct': 'modules/struct.md'
|
- 'struct': 'modules/struct.md'
|
||||||
- 'time': 'modules/time.md'
|
- 'time': 'modules/time.md'
|
||||||
- 'tmr': 'modules/tmr.md'
|
- 'tmr': 'modules/tmr.md'
|
||||||
- 'touch': 'modules/touch.md'
|
- 'touch': 'modules/touch.md'
|
||||||
- 'u8g2': 'modules/u8g2.md'
|
- 'u8g2': 'modules/u8g2.md'
|
||||||
- 'uart': 'modules/uart.md'
|
- 'uart': 'modules/uart.md'
|
||||||
- 'ucg': 'modules/ucg.md'
|
- 'ucg': 'modules/ucg.md'
|
||||||
- 'wifi': 'modules/wifi.md'
|
- 'wifi': 'modules/wifi.md'
|
||||||
- 'ws2812': 'modules/ws2812.md'
|
- 'ws2812': 'modules/ws2812.md'
|
||||||
|
|
Loading…
Reference in New Issue