Browse Source

add header

fish 1 year ago
parent
commit
5ea801a117

+ 9 - 0
README.md

@@ -39,6 +39,15 @@ pip install python-pip
 文档构建:
 文档构建:
 ```
 ```
 cd docs
 cd docs
+# install pdf
+apt-get install texlive-latex-recommended -y
+apt-get install texlive-latex-extra -y
+apt-get install latexmk -y
+
+make html
+make latexpdf
+
+
 docker build -t jianboy:repo_sync_docs .
 docker build -t jianboy:repo_sync_docs .
 docker run -it --rm -v /my/repo_sync_docs:/docs
 docker run -it --rm -v /my/repo_sync_docs:/docs
 ```
 ```

+ 6 - 0
docs/.htaccess

@@ -0,0 +1,6 @@
+<IfModule authz_core_module>
+    Require all denied
+</IfModule>
+<IfModule !authz_core_module>
+    Deny from all
+</IfModule>

+ 0 - 0
docs/source/_static/css/index.css


BIN
docs/source/_static/favicon.ico


+ 13 - 0
docs/source/_templates/footer.html

@@ -0,0 +1,13 @@
+{% extends '!footer.html' %}
+
+{% block extrafooter %}
+{{super}}
+
+<div style="margin-top: 16px;">
+    <p>Copyright @2023 Zhizhou Inc.</p>
+    <p style="margin-bottom: 0;">
+        <a href="https://fileshare.yoqi.me/download/Develop/python/repo_sync/how_to_use-1.0.0.pdfhow_to_use-1.0.0.pdf">PDF
+            版下载</a>
+    </p>
+</div>
+{% endblock %}

+ 0 - 0
docs/source/_templates/header.html


+ 2 - 2
docs/source/conf.py

@@ -60,8 +60,8 @@ master_doc = 'index'
 #
 #
 # This is also used if you do content translation via gettext catalogs.
 # This is also used if you do content translation via gettext catalogs.
 # Usually you set "language" from the command line for these cases.
 # Usually you set "language" from the command line for these cases.
-language = None
-
+language = 'zh_CN'
+html_search_language = 'zh'
 # List of patterns, relative to source directory, that match files and
 # List of patterns, relative to source directory, that match files and
 # directories to ignore when looking for source files.
 # directories to ignore when looking for source files.
 # This pattern also affects html_static_path and html_extra_path.
 # This pattern also affects html_static_path and html_extra_path.