Skip to content

Commit

Permalink
初始化文档
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk committed Mar 3, 2025
1 parent cd70246 commit 5dfbf24
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 2 deletions.
Empty file added docs/index.md
Empty file.
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"icons": {
"128": "icons/128.png"
},
"description": "将 Google CDN 替换为国内镜像 v3 更新日期:2024-08-02",
"description": "将 Google CDN 替换为国内镜像 v3 更新日期:2025-03-03",
"background": {
"service_worker": "js/background.js",
"type": "module"
Expand Down
7 changes: 7 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
theme:
name: material
site_name: DOCS
site_url: ""

plugins:
- search
2 changes: 1 addition & 1 deletion tools/download-firefox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ OS=$(uname -s)
ARCH=$(uname -m)
echo "${OS}_${ARCH}"

FIREFOX_VERSION=129.0b9
FIREFOX_VERSION=136.0b9

if [ -n "$1" ]; then
FIREFOX_VERSION="$1"
Expand Down
30 changes: 30 additions & 0 deletions tools/python3-init-docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash

set -exu
__DIR__=$(
cd "$(dirname "$0")"
pwd
)

__PROJECT__=$(
cd ${__DIR__}/../
pwd
)

# docker pull squidfunk/mkdocs-material

mkdir -p ${__PROJECT__}/var/
cd ${__PROJECT__}/var/

. venv/bin/activate

cd ${__PROJECT__}/

mkdocs --help
# mkdocs new .
mkdocs build --help
mkdocs build -d dist/docs/
mkdocs serve -f mkdocs.yml



26 changes: 26 additions & 0 deletions tools/python3-venv-init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash

set -exu
__DIR__=$(
cd "$(dirname "$0")"
pwd
)

__PROJECT__=$(
cd ${__DIR__}/../
pwd
)

mkdir -p ${__PROJECT__}/var/
cd ${__PROJECT__}/var/

python3 -m venv venv

. venv/bin/activate

cd ${__PROJECT__}/tools/

pip3 install mkdocs-material -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install playwright -i https://pypi.tuna.tsinghua.edu.cn/simple

pip3 freeze > requirements.txt
File renamed without changes.
24 changes: 24 additions & 0 deletions tools/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,34 @@
babel==2.17.0
backrefs==5.8
certifi==2023.7.22
charset-normalizer==2.1.0
click==8.1.8
colorama==0.4.6
ghp-import==2.1.0
greenlet==2.0.2
idna==3.3
Jinja2==3.1.5
Markdown==3.7
MarkupSafe==3.0.2
mergedeep==1.3.4
mkdocs==1.6.1
mkdocs-get-deps==0.2.0
mkdocs-material==9.6.7
mkdocs-material-extensions==1.3.1
packaging==24.2
paginate==0.5.7
pathspec==0.12.1
pika==1.3.1
platformdirs==4.3.6
playwright==1.35.0
pyee==9.0.4
Pygments==2.19.1
pymdown-extensions==10.14.3
python-dateutil==2.9.0.post0
PyYAML==6.0.2
pyyaml_env_tag==0.1
requests==2.28.1
six==1.17.0
typing_extensions==4.7.1
urllib3==1.26.11
watchdog==6.0.0

0 comments on commit 5dfbf24

Please sign in to comment.