Skip to content

Commit

Permalink
feat: Add index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxuan6 committed Dec 21, 2023
1 parent a45eab5 commit 55ab691
Show file tree
Hide file tree
Showing 36 changed files with 670 additions and 6,931 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ jobs:
pip install -r requirements.txt
filenames=$(git log -1 --name-status --pretty=format:"" | cut -f 2-)
if [[ $filenames =~ 第[0-9]+期 ]]; then
mkdocs build
mkdocs gh-deploy --force
fi
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
site
3 changes: 3 additions & 0 deletions docs/static/js/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$(document).ready(function() {
$('.md-content a').attr('target', '_blank');
});
4 changes: 4 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ site_author: xiaoxuan6
repo_name: xiaoxuan6/weekly
repo_url: https://github.com/xiaoxuan6/weekly

extra_javascript:
- https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js
- static/js/index.js

theme:
name: material
language: zh
Expand Down
Loading

0 comments on commit 55ab691

Please sign in to comment.