Skip to content

Commit

Permalink
Build documents with Rye
Browse files Browse the repository at this point in the history
  • Loading branch information
minoki committed Aug 6, 2024
1 parent 0e6534a commit 942c8bc
Show file tree
Hide file tree
Showing 8 changed files with 153 additions and 26 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Build HTML
uses: ammaraskar/sphinx-action@master
- name: Setup Rye
uses: eifinger/setup-rye@v4
with:
docs-folder: "docs/"
enable-cache: true
working-directory: 'docs/'
- name: Sync dependencies
run: rye sync
- name: Build HTML
run: make -C docs SPHINXBUILD="rye run sphinx-build" html
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ lib/lunarml/ml/mlyacc-lib/
lib/lunarml/ml/smlnj-lib/
package/npm/lunarml.mjs
package/npm/lib/
docs/_build/
*.bak
10 changes: 10 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# python generated files
__pycache__/
*.py[oc]
build/
dist/
wheels/
*.egg-info

# venv
.venv
1 change: 1 addition & 0 deletions docs/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12.4
17 changes: 17 additions & 0 deletions docs/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[project]
name = "lunarml-docs"
version = "0.1.0"
description = "The documentation of LunarML"
authors = [
{ name = "ARATA Mizuki", email = "minorinoki@gmail.com" }
]
dependencies = [
"sphinx-rtd-theme>=2.0.0",
"sphinx==7.*",
]
requires-python = ">= 3.8"

[tool.rye]
managed = true
virtual = true
dev-dependencies = []
58 changes: 58 additions & 0 deletions docs/requirements-dev.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false

alabaster==0.7.16
# via sphinx
babel==2.15.0
# via sphinx
certifi==2024.7.4
# via requests
charset-normalizer==3.3.2
# via requests
docutils==0.20.1
# via sphinx
# via sphinx-rtd-theme
idna==3.7
# via requests
imagesize==1.4.1
# via sphinx
jinja2==3.1.4
# via sphinx
markupsafe==2.1.5
# via jinja2
packaging==24.1
# via sphinx
pygments==2.18.0
# via sphinx
requests==2.32.3
# via sphinx
snowballstemmer==2.2.0
# via sphinx
sphinx==7.4.7
# via sphinx-rtd-theme
# via sphinxcontrib-jquery
sphinx-rtd-theme==2.0.0
sphinxcontrib-applehelp==2.0.0
# via sphinx
sphinxcontrib-devhelp==2.0.0
# via sphinx
sphinxcontrib-htmlhelp==2.1.0
# via sphinx
sphinxcontrib-jquery==4.1
# via sphinx-rtd-theme
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==2.0.0
# via sphinx
sphinxcontrib-serializinghtml==2.0.0
# via sphinx
urllib3==2.2.2
# via requests
58 changes: 58 additions & 0 deletions docs/requirements.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false

alabaster==0.7.16
# via sphinx
babel==2.15.0
# via sphinx
certifi==2024.7.4
# via requests
charset-normalizer==3.3.2
# via requests
docutils==0.20.1
# via sphinx
# via sphinx-rtd-theme
idna==3.7
# via requests
imagesize==1.4.1
# via sphinx
jinja2==3.1.4
# via sphinx
markupsafe==2.1.5
# via jinja2
packaging==24.1
# via sphinx
pygments==2.18.0
# via sphinx
requests==2.32.3
# via sphinx
snowballstemmer==2.2.0
# via sphinx
sphinx==7.4.7
# via sphinx-rtd-theme
# via sphinxcontrib-jquery
sphinx-rtd-theme==2.0.0
sphinxcontrib-applehelp==2.0.0
# via sphinx
sphinxcontrib-devhelp==2.0.0
# via sphinx
sphinxcontrib-htmlhelp==2.1.0
# via sphinx
sphinxcontrib-jquery==4.1
# via sphinx-rtd-theme
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==2.0.0
# via sphinx
sphinxcontrib-serializinghtml==2.0.0
# via sphinx
urllib3==2.2.2
# via requests
23 changes: 0 additions & 23 deletions docs/requirements.txt

This file was deleted.

0 comments on commit 942c8bc

Please sign in to comment.