Skip to content

Commit d6e945f

Browse files
committed
Provide a copy of 'en' folders and files together with '..include::' links inside files as preparation for translation of this site into Chinese.
1 parent 9f146cd commit d6e945f

File tree

93 files changed

+1190
-485
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+1190
-485
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ docs/*/xml_in/
3333
docs/*/man/
3434
docs/*/doxygen_sqlite3.db
3535

36+
# Downloaded font files
37+
docs/_static/DejaVuSans.ttf
38+
docs/_static/NotoSansSC-Regular.otf
39+
3640
# gcov coverage reports
3741
*.gcda
3842
*.gcno

.gitlab-ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,29 @@ build_docs:
122122
artifacts:
123123
when: always
124124
paths:
125+
# English version of documentation
125126
- docs/en/doxygen-warning-log.txt
126127
- docs/en/sphinx-warning-log.txt
127128
- docs/en/sphinx-warning-log-sanitized.txt
128129
- docs/en/_build/html
130+
- docs/sphinx-err-*
131+
# Chinese version of documentation
132+
- docs/zh_CN/doxygen-warning-log.txt
133+
- docs/zh_CN/sphinx-warning-log.txt
134+
- docs/zh_CN/sphinx-warning-log-sanitized.txt
135+
- docs/zh_CN/_build/html
129136
expire_in: 1 mos
130137
script:
131-
- cd docs/en
138+
- cd docs
139+
- ./check_lang_folder_sync.sh
140+
- cd en
141+
- make gh-linkcheck
142+
- make html
143+
- ../check_doc_warnings.sh
144+
- cd ../zh_CN
132145
- make gh-linkcheck
133146
- make html
134147
- ../check_doc_warnings.sh
135-
136148
assign_test:
137149
tags:
138150
- assign_test

docs/README.md

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,31 @@
1-
# Documentation Source Folder
2-
3-
This folder contains source files of [ESP-ADF documentation](https://docs.espressif.com/projects/esp-adf/en/latest/)
4-
5-
The sources do not render well in GitHub and some information is not visible at all.
6-
7-
Use actual documentation generated within about 20 minutes on each commit under https://docs.espressif.com/projects/esp-adf/en/latest/
1+
# Documentation Source Folder
2+
3+
This folder contains source files of **ESP-ADF documentation** available in [English](https://docs.espressif.com/projects/esp-adf/en/latest/) and [中文](https://docs.espressif.com/projects/esp-adf/zh_CN/latest/).
4+
5+
The sources do not render well in GitHub and some information is not visible at all.
6+
7+
Use actual documentation generated within about 20 minutes on each commit:
8+
9+
# Hosted Documentation
10+
11+
* English: https://docs.espressif.com/projects/esp-adf/en/latest/
12+
* 中文: https://docs.espressif.com/projects/esp-adf/zh_CN/latest/
13+
14+
The above URLs are all for the master branch latest version. Click the drop-down in the bottom left to choose a stable version or to download a PDF.
15+
16+
17+
# Building Documentation
18+
19+
* Install `make` and `doxygen` for your platform (`make` may already be installed as an ESP-IDF prerequisite).
20+
* Change to either the docs/en or docs/zh_CN subdirectory and run `make html`
21+
* `make` will probably prompt you to run a python pip install step to get some other Python-related prerequisites. Run the command as shown, then re-run `make html` to build the docs.
22+
23+
## For MSYS2 MINGW32 on Windows
24+
25+
If using Windows and the MSYS2 MINGW32 terminal, run this command before running "make html" the first time:
26+
27+
```
28+
pacman -S doxygen mingw-w64-i686-python2-pillow
29+
```
30+
31+
Note: Currently it is not possible to build docs on Windows without using a Unix-on-Windows layer such as MSYS2 MINGW32.

docs/_static/404-page__cn.svg

Lines changed: 272 additions & 0 deletions
Loading

docs/_static/404-page__en.svg

Lines changed: 260 additions & 0 deletions
Loading

docs/_static/DejaVuSans.license

Lines changed: 0 additions & 58 deletions
This file was deleted.

docs/_static/DejaVuSans.ttf

-704 KB
Binary file not shown.

docs/_static/api-reference.gif

-3.03 KB
Binary file not shown.

docs/_static/api-reference.png

6.82 KB
Loading

docs/_static/design-guide.gif

-3.21 KB
Binary file not shown.

0 commit comments

Comments
 (0)