diff --git a/.gitignore b/.gitignore index 8348f0fcb..56840abe5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ site -tmp +logs diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3bdbfaa2d..4ca5df676 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,4 @@ +# 编译脚本 - 当前使用 image: python:alpine before_script: diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..f0b3b2e15 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes_material"] + path = themes_material + url = https://gitlab.com/apachecn/themes_material.git diff --git a/CNAME b/CNAME deleted file mode 100644 index 591dcd577..000000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -pytorch.apachecn.org \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index e156c128b..cf1daf6f7 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -7,7 +7,7 @@ repo_url: https://github.com/apachecn/pytorch-doc-zh theme: name: material - custom_dir: themes + custom_dir: themes_material locale: zh_CN analytics: gtag: G-8DP4GX97XY @@ -22,7 +22,7 @@ markdown_extensions: generic: true extra_javascript: - - javascripts/mathjax.js + # - javascripts/mathjax.js - https://polyfill.io/v3/polyfill.min.js?features=es6 - https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js diff --git a/run_daily.sh b/run_daily.sh new file mode 100644 index 000000000..ee95df373 --- /dev/null +++ b/run_daily.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +sum=0 +while : +do + echo "开始拉取最新代码" + # git remote add origin_online https://github.com/apachecn/pytorch-doc-zh.git + git pull origin_online master + git push origin main + sum=`expr $sum + 1` + # 1个小时 + echo $(date "+%Y-%m-%d %H:%M:%S") " --- 更新次数: $sum" >> logs/info.log + sleep 10 +done + +echo "$(date) The sum is: $sum" diff --git a/themes/assets/images/partnerstack.gif b/themes/assets/images/partnerstack.gif deleted file mode 100644 index 920f2f6a5..000000000 Binary files a/themes/assets/images/partnerstack.gif and /dev/null differ diff --git a/themes/main.html b/themes/main.html deleted file mode 100644 index 5729a6835..000000000 --- a/themes/main.html +++ /dev/null @@ -1,37 +0,0 @@ -{#- - This file was automatically generated - do not edit --#} -{% extends "base.html" %} -{% block extrahead %} - - - - - - - - - - - - -{% endblock %} -{% block announce %} - => 组织无偿提供 中文版本(免费,秒级响应) - - - ChatGPT - ailake.top - - ChatGPT - ailake.top - 一起来白嫖叭~! -{% endblock %} -{% block scripts %} - {{ super() }} - -{% endblock %} diff --git a/themes/partials/content.html b/themes/partials/content.html deleted file mode 100644 index ad8bf4bef..000000000 --- a/themes/partials/content.html +++ /dev/null @@ -1,60 +0,0 @@ -{#- - This file was automatically generated - do not edit --#} -{% if "material/tags" in config.plugins %} - {% include "partials/tags.html" %} -{% endif %} -{% include "partials/actions.html" %} -{% if "\x3ch1" not in page.content %} -

{{ page.title | d(config.site_name, true)}}

-{% endif %} -
-{{ page.content }} -
-
-

我们一直在努力

-

apachecn/pytorch-doc-zh

-

【布客】中文翻译组

-

- -
-
- - - - -
-
-
- -
- - -
- - -{% if page.meta and ( - page.meta.git_revision_date_localized or - page.meta.revision_date -) %} - {% include "partials/source-file.html" %} -{% endif %} -{% include "partials/feedback.html" %} -{% include "partials/comments.html" %} diff --git a/themes/partials/copyright.html b/themes/partials/copyright.html deleted file mode 100644 index 58ce97295..000000000 --- a/themes/partials/copyright.html +++ /dev/null @@ -1,16 +0,0 @@ -{#- - This file was automatically generated - do not edit --#} - diff --git a/themes_material b/themes_material new file mode 160000 index 000000000..bfc37d1e0 --- /dev/null +++ b/themes_material @@ -0,0 +1 @@ +Subproject commit bfc37d1e0805d6dad3d60292a9c76ff80bbdd8f3