Skip to content

Commit

Permalink
Merge pull request #611 from jiangzhonglian/main
Browse files Browse the repository at this point in the history
完善网站 SEO
  • Loading branch information
jiangzhonglian authored Jul 22, 2023
2 parents 31cf5f8 + d3d5d37 commit b44993b
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 117 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
site
tmp
logs
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# 编译脚本 - 当前使用
image: python:alpine

before_script:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "themes_material"]
path = themes_material
url = https://gitlab.com/apachecn/themes_material.git
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
16 changes: 16 additions & 0 deletions run_daily.sh
Original file line number Diff line number Diff line change
@@ -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"
Binary file removed themes/assets/images/partnerstack.gif
Binary file not shown.
37 changes: 0 additions & 37 deletions themes/main.html

This file was deleted.

60 changes: 0 additions & 60 deletions themes/partials/content.html

This file was deleted.

16 changes: 0 additions & 16 deletions themes/partials/copyright.html

This file was deleted.

1 change: 1 addition & 0 deletions themes_material
Submodule themes_material added at bfc37d

1 comment on commit b44993b

@vercel
Copy link

@vercel vercel bot commented on b44993b Jul 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pytorch-doc-zh – ./

pytorch-doc-zh-apachecn.vercel.app
pytorch-doc-zh.vercel.app
pytorch-doc-zh-git-master-apachecn.vercel.app

Please sign in to comment.