diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..67b129b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: ci +on: + push: + branches: + - master + - main +permissions: + contents: write +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.x + - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV + - uses: actions/cache@v3 + with: + key: mkdocs-material-${{ env.cache_id }} + path: .cache + restore-keys: | + mkdocs-material- + - run: pip install mkdocs-material + - run: mkdocs gh-deploy --force diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..09dd1da --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +venv/* diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..c9be289 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,21 @@ +# Welcome to Phylosophy-Notes + +这是一个哲学笔记wiki. + +会记录一些自己关注的哲学家,或者社会学家. + +For full documentation visit [mkdocs.org](https://www.mkdocs.org). + +## Commands + +* `mkdocs new [dir-name]` - Create a new project. +* `mkdocs serve` - Start the live-reloading docs server. +* `mkdocs build` - Build the documentation site. +* `mkdocs -h` - Print help message and exit. + +## Project layout + + mkdocs.yml # The configuration file. + docs/ + index.md # The documentation homepage. + ... # Other markdown pages, images and other files. diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 0000000..9810813 --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,3 @@ +site_name: Phylosophy-Notes +theme: + name: material \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..2a50347 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,31 @@ +Babel==2.12.1 +certifi==2023.7.22 +charset-normalizer==3.2.0 +click==8.1.7 +colorama==0.4.6 +ghp-import==2.1.0 +idna==3.4 +importlib-metadata==6.8.0 +Jinja2==3.1.2 +Markdown==3.4.4 +MarkupSafe==2.1.3 +mergedeep==1.3.4 +mkdocs==1.5.2 +mkdocs-material==9.2.8 +mkdocs-material-extensions==1.1.1 +packaging==23.1 +paginate==0.5.6 +pathspec==0.11.2 +platformdirs==3.10.0 +Pygments==2.16.1 +pymdown-extensions==10.3 +python-dateutil==2.8.2 +pytz==2023.3.post1 +PyYAML==6.0.1 +pyyaml-env-tag==0.1 +regex==2023.8.8 +requests==2.31.0 +six==1.16.0 +urllib3==2.0.4 +watchdog==3.0.0 +zipp==3.16.2