Skip to content

Commit

Permalink
Merge pull request #585 from apachecn/dev
Browse files Browse the repository at this point in the history
web 网站2.0升级
  • Loading branch information
jiangzhonglian committed Jun 25, 2023
2 parents 37168e4 + c616b15 commit d2ea5bd
Show file tree
Hide file tree
Showing 132 changed files with 870 additions and 3,269 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/gh-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy to Github Pages

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: pip install mkdocs mkdocs-material
- run: mkdocs gh-deploy --force
131 changes: 2 additions & 129 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,129 +1,2 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# dotenv
.env

# virtualenv
.venv
venv/
ENV/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.DS_Store

# gitbook
_book

# node.js
node_modules
node_modules.zip

# windows
Thumbs.db

# word
~$*.docx
~$*.doc

# IDEA
.idea/

# custom
# docs/README.md
docs/0.2/book.json
docs/0.3/book.json
docs/0.4/book.json
docs/1.0/book.json
docs/1.2/book.json
docs/1.4/book.json
docs/LatestChanges/book.json
site
tmp
15 changes: 15 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
image: python:alpine

before_script:
- pip install -i https://pypi.tuna.tsinghua.edu.cn/simple mkdocs && mkdocs --version
- pip install -i https://pypi.tuna.tsinghua.edu.cn/simple mkdocs-material

pages:
script:
- mkdocs build --clean
- mv site public
artifacts:
paths:
- public
only:
- main
Empty file removed .nojekyll
Empty file.
4 changes: 0 additions & 4 deletions 404.html

This file was deleted.

48 changes: 0 additions & 48 deletions CONTRIBUTING.md

This file was deleted.

2 changes: 0 additions & 2 deletions Dockerfile

This file was deleted.

101 changes: 0 additions & 101 deletions LICENSE

This file was deleted.

Loading

1 comment on commit d2ea5bd

@vercel
Copy link

@vercel vercel bot commented on d2ea5bd Jun 25, 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-git-master-apachecn.vercel.app
pytorch-doc-zh-apachecn.vercel.app
pytorch-doc-zh.vercel.app

Please sign in to comment.