diff options
| author | 2024-07-21 09:06:42 +0800 | |
|---|---|---|
| committer | 2024-07-21 09:06:42 +0800 | |
| commit | 5ad26d4cb60999972ac0130fb55376b51952b16d (patch) | |
| tree | 62977e7dbb46a616c49f9559a9bc4ec6d0566b6e | |
| parent | cea648308d0182f098e4b7eb6d1909c81b504eda (diff) | |
| download | echo-5ad26d4cb60999972ac0130fb55376b51952b16d.tar.gz echo-5ad26d4cb60999972ac0130fb55376b51952b16d.zip | |
refactor!: rebuild docs with sphinx
| -rw-r--r-- | .readthedocs.yml | 32 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | assets/.gitkeep | 1 | ||||
| -rw-r--r-- | docs/Makefile | 31 | ||||
| -rw-r--r-- | docs/_static/ES-black.svg (renamed from assets/ES-black.svg) | 0 | ||||
| -rw-r--r-- | docs/_static/ES-white.svg (renamed from assets/ES-white.svg) | 0 | ||||
| -rw-r--r-- | docs/_static/echo.jpg (renamed from assets/echo.jpg) | bin | 78510 -> 78510 bytes | |||
| -rw-r--r-- | docs/requirements.txt | 7 | ||||
| -rw-r--r-- | mkdocs.yml | 42 | ||||
| -rw-r--r-- | pdm.lock | 106 | ||||
| -rw-r--r-- | pyproject.toml | 4 |
11 files changed, 171 insertions, 54 deletions
diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 0000000..6d62693 --- /dev/null +++ b/.readthedocs.yml @@ -0,0 +1,32 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the OS, Python version and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.10" + # You can also specify other tool versions: + # nodejs: "19" + # rust: "1.64" + # golang: "1.19" + +# Build documentation in the "docs/" directory with Sphinx +sphinx: + configuration: docs/source/conf.py + +# Optionally build your docs in additional formats such as PDF and ePub +formats: + - pdf + - epub + +# Optional but recommended, declare the Python requirements required +# to build your documentation +# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html +python: + install: + - requirements: docs/requirements.txt
\ No newline at end of file @@ -6,7 +6,7 @@ >>> >>> -### 介绍 <img width="80" align="right" src="https://github.com/HydroRoll-Team/echo/blob/main/assets/echo.jpg"> +### 介绍 <img width="80" align="right" src="https://github.com/HydroRoll-Team/echo/blob/main/docs/_static/echo.jpg"> `Echo` 标准是一种用于定义和描述不同平台之间的事件交互和同步的标准规范,它的名字的意象是事件在不同平台之间的回响,表示事件的一致性和同步性。它的名字的意义是事件的沟通和协调,表示标准的目的和价值。 diff --git a/assets/.gitkeep b/assets/.gitkeep deleted file mode 100644 index 8b13789..0000000 --- a/assets/.gitkeep +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 0000000..5607373 --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,31 @@ +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line, and also +# from the environment for the first two. +SPHINXOPTS ?= +SPHINXBUILD ?= sphinx-build +SOURCEDIR = source +BUILDDIR = _build +SPHINXINTL ?= sphinx-intl +lang ?= zh_CN +SPHINX ?= sphinx + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +.PHONY: help Makefile + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +# update translation command +translate: + @$(SPHINXINTL) update -p ./build/gettext -l $(lang) $(O) + +# build docs +docs build: + @pdm run $(SPHINXBUILD) "$(SOURCEDIR)" "$(BUILDDIR)" $(O)
\ No newline at end of file diff --git a/assets/ES-black.svg b/docs/_static/ES-black.svg index 754113c..754113c 100644 --- a/assets/ES-black.svg +++ b/docs/_static/ES-black.svg diff --git a/assets/ES-white.svg b/docs/_static/ES-white.svg index 5df64ff..5df64ff 100644 --- a/assets/ES-white.svg +++ b/docs/_static/ES-white.svg diff --git a/assets/echo.jpg b/docs/_static/echo.jpg Binary files differindex 8a499e0..8a499e0 100644 --- a/assets/echo.jpg +++ b/docs/_static/echo.jpg diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 0000000..899492a --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1,7 @@ +furo>=2023.3.27 +sphinx-autobuild>=2021.3.14 +myst-parser>=0.18.1 +sphinx>=5.3.0 +tomli +sphinx_design +sphinx-intl>=2.1.0
\ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml deleted file mode 100644 index 814230c..0000000 --- a/mkdocs.yml +++ /dev/null @@ -1,42 +0,0 @@ -site_name: Echo Standard -site_description: Event Communication and Harmonization across Online platforms -site_url: https://echo.hydroroll.team - -theme: - name: alabaster - highlightjs: true - hljs_languages: - - yaml - - rust - - json - - python - - toml - -repo_url: https://github.com/HydroRoll-Team/echo -edit_uri: blob/main/docs/ - -site_author: Hsiang Nianian -copyright: 2023 HydroRoll-Team - -extra: - version: 1.0 - -markdown_extensions: - - toc: - permalink: true - separator: "_" - -hooks: - - scripts/hooks.py - -plugins: - - search - -nav: - - Home: index.md - - Contents: - - Term.md - - Event.md - - Element.md - - Resources: - - API.md @@ -3,9 +3,60 @@ [metadata] groups = ["default", "docs", "mkdocs-alabaster"] -strategy = ["cross_platform"] -lock_version = "4.4" -content_hash = "sha256:137b803e5b64705962e260a87436067270dd5bb4e5af8840d6ec268d763e1a7a" +cross_platform = true +static_urls = false +lock_version = "4.3" +content_hash = "sha256:4e1f053101792271dc87c094b6c5976943548f0a898e02c524b365cf294de51c" + +[[package]] +name = "certifi" +version = "2024.2.2" +requires_python = ">=3.6" +summary = "Python package for providing Mozilla's CA Bundle." +files = [ + {file = "certifi-2024.2.2-py3-none-any.whl", hash = "sha256:dc383c07b76109f368f6106eee2b593b04a011ea4d55f652c6ca24a754d1cdd1"}, + {file = "certifi-2024.2.2.tar.gz", hash = "sha256:0569859f95fc761b18b45ef421b1290a0f65f147e92a1e5eb3e635f9a5e4e66f"}, +] + +[[package]] +name = "charset-normalizer" +version = "3.3.2" +requires_python = ">=3.7.0" +summary = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." +files = [ + {file = "charset-normalizer-3.3.2.tar.gz", hash = "sha256:f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:802fe99cca7457642125a8a88a084cef28ff0cf9407060f7b93dca5aa25480db"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:573f6eac48f4769d667c4442081b1794f52919e7edada77495aaed9236d13a96"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:549a3a73da901d5bc3ce8d24e0600d1fa85524c10287f6004fbab87672bf3e1e"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f27273b60488abe721a075bcca6d7f3964f9f6f067c8c4c605743023d7d3944f"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1ceae2f17a9c33cb48e3263960dc5fc8005351ee19db217e9b1bb15d28c02574"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:65f6f63034100ead094b8744b3b97965785388f308a64cf8d7c34f2f2e5be0c4"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:753f10e867343b4511128c6ed8c82f7bec3bd026875576dfd88483c5c73b2fd8"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4a78b2b446bd7c934f5dcedc588903fb2f5eec172f3d29e52a9096a43722adfc"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e537484df0d8f426ce2afb2d0f8e1c3d0b114b83f8850e5f2fbea0e797bd82ae"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:eb6904c354526e758fda7167b33005998fb68c46fbc10e013ca97f21ca5c8887"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:deb6be0ac38ece9ba87dea880e438f25ca3eddfac8b002a2ec3d9183a454e8ae"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:4ab2fe47fae9e0f9dee8c04187ce5d09f48eabe611be8259444906793ab7cbce"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:80402cd6ee291dcb72644d6eac93785fe2c8b9cb30893c1af5b8fdd753b9d40f"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-win32.whl", hash = "sha256:7cd13a2e3ddeed6913a65e66e94b51d80a041145a026c27e6bb76c31a853c6ab"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl", hash = "sha256:663946639d296df6a2bb2aa51b60a2454ca1cb29835324c640dafb5ff2131a77"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:0b2b64d2bb6d3fb9112bafa732def486049e63de9618b5843bcdd081d8144cd8"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:ddbb2551d7e0102e7252db79ba445cdab71b26640817ab1e3e3648dad515003b"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:55086ee1064215781fff39a1af09518bc9255b50d6333f2e4c74ca09fac6a8f6"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8f4a014bc36d3c57402e2977dada34f9c12300af536839dc38c0beab8878f38a"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a10af20b82360ab00827f916a6058451b723b4e65030c5a18577c8b2de5b3389"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8d756e44e94489e49571086ef83b2bb8ce311e730092d2c34ca8f7d925cb20aa"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:90d558489962fd4918143277a773316e56c72da56ec7aa3dc3dbbe20fdfed15b"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6ac7ffc7ad6d040517be39eb591cac5ff87416c2537df6ba3cba3bae290c0fed"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7ed9e526742851e8d5cc9e6cf41427dfc6068d4f5a3bb03659444b4cabf6bc26"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:8bdb58ff7ba23002a4c5808d608e4e6c687175724f54a5dade5fa8c67b604e4d"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:6b3251890fff30ee142c44144871185dbe13b11bab478a88887a639655be1068"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:b4a23f61ce87adf89be746c8a8974fe1c823c891d8f86eb218bb957c924bb143"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:efcb3f6676480691518c177e3b465bcddf57cea040302f9f4e6e191af91174d4"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-win32.whl", hash = "sha256:d965bba47ddeec8cd560687584e88cf699fd28f192ceb452d1d7ee807c5597b7"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl", hash = "sha256:96b02a3dc4381e5494fad39be677abcb5e6634bf7b4fa83a6dd3112607547001"}, + {file = "charset_normalizer-3.3.2-py3-none-any.whl", hash = "sha256:3e4d1f6587322d2788836a99c69062fbb091331ec940e02d12d179c1d53e25fc"}, +] [[package]] name = "click" @@ -43,6 +94,16 @@ files = [ ] [[package]] +name = "idna" +version = "3.6" +requires_python = ">=3.5" +summary = "Internationalized Domain Names in Applications (IDNA)" +files = [ + {file = "idna-3.6-py3-none-any.whl", hash = "sha256:c05567e9c24a6b9faaa835c4821bad0590fbb9d5779e7caa6e1cc4978e7eb24f"}, + {file = "idna-3.6.tar.gz", hash = "sha256:9ecdbbd083b06798ae1e86adcbfe8ab1479cf864e4ee30fe4e46a003d12491ca"}, +] + +[[package]] name = "jinja2" version = "3.1.2" requires_python = ">=3.7" @@ -130,15 +191,16 @@ files = [ ] [[package]] -name = "mkdocs-windmill-dark" -version = "0.2.0" -summary = "MkDocs dark theme focused on navigation and usability" +name = "mkdocs-alabaster" +version = "0.8.0" +requires_python = ">=3.6,<4.0" +summary = "Alabaster port for MkDocs" dependencies = [ - "mkdocs", + "mkdocs<2.0,>=1.0", ] files = [ - {file = "mkdocs-windmill-dark-0.2.0.tar.gz", hash = "sha256:c07ef2bafaf943be3060d731cbd8ec8b89f81750ed10ca724471d479f972ec3e"}, - {file = "mkdocs_windmill_dark-0.2.0-py3-none-any.whl", hash = "sha256:e83f1e2f914e97ae0cec5deabdaa2682d09a27d633004a10b0043f06d03f225c"}, + {file = "mkdocs-alabaster-0.8.0.tar.gz", hash = "sha256:3ca8945875d195a9458a00c42a85c18245c1625e5e1cfea88523bd57be04fdc3"}, + {file = "mkdocs_alabaster-0.8.0-py3-none-any.whl", hash = "sha256:eef8536be320e3cacd7ca17c4f8071c76fb3c3452730515d0488b516df4b8e21"}, ] [[package]] @@ -221,6 +283,22 @@ files = [ ] [[package]] +name = "requests" +version = "2.31.0" +requires_python = ">=3.7" +summary = "Python HTTP for Humans." +dependencies = [ + "certifi>=2017.4.17", + "charset-normalizer<4,>=2", + "idna<4,>=2.5", + "urllib3<3,>=1.21.1", +] +files = [ + {file = "requests-2.31.0-py3-none-any.whl", hash = "sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f"}, + {file = "requests-2.31.0.tar.gz", hash = "sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1"}, +] + +[[package]] name = "six" version = "1.16.0" requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" @@ -231,6 +309,16 @@ files = [ ] [[package]] +name = "urllib3" +version = "2.2.1" +requires_python = ">=3.8" +summary = "HTTP library with thread-safe connection pooling, file post, and more." +files = [ + {file = "urllib3-2.2.1-py3-none-any.whl", hash = "sha256:450b20ec296a467077128bff42b73080516e71b56ff59a60a02bef2232c4fa9d"}, + {file = "urllib3-2.2.1.tar.gz", hash = "sha256:d0570876c61ab9e520d776c38acbbb5b05a776d3f9ff98a5c8fd5162a444cf19"}, +] + +[[package]] name = "watchdog" version = "3.0.0" requires_python = ">=3.7" diff --git a/pyproject.toml b/pyproject.toml index cb7ffc5..b008d54 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,9 @@ description = "Event Communication and Harmonization across Online platforms" authors = [ {name = "简律纯",email = "i@jyunko.cn"}, ] -dependencies = [] +dependencies = [ + "requests>=2.31.0", +] requires-python = ">=3.11" readme = "README.md" license = {text = "MIT"} |
