From 45b30a9b1f56376b3eb2b84970956a9687bdda24 Mon Sep 17 00:00:00 2001 From: pnnehome Date: Tue, 14 Nov 2023 15:58:46 -0800 Subject: [PATCH] many changes --- .github/workflows/deploy.yml | 33 ++++++ .gitignore | 4 + README.rst | 5 + docs/CNAME | 1 + docs/Makefile | 20 ++++ docs/make.bat | 35 +++++++ docs/source/_static/CNAME | 1 + docs/source/_static/custom.css | 34 +++++++ docs/source/_static/logo.png | Bin 0 -> 7970 bytes docs/source/_templates/layout.html | 18 ++++ docs/source/code/code.rst | 125 +++++++++++++++++++++++ docs/source/conf.py | 43 ++++++++ docs/source/conf.py.bk | 44 ++++++++ docs/source/contact/contact.rst | 14 +++ docs/source/home/home.rst | 146 +++++++++++++++++++++++++++ docs/source/index.rst | 157 +++++++++++++++++++++++++++++ requirements.txt | 3 + 17 files changed, 683 insertions(+) create mode 100644 .github/workflows/deploy.yml create mode 100644 .gitignore create mode 100644 README.rst create mode 100644 docs/CNAME create mode 100644 docs/Makefile create mode 100644 docs/make.bat create mode 100644 docs/source/_static/CNAME create mode 100644 docs/source/_static/custom.css create mode 100644 docs/source/_static/logo.png create mode 100644 docs/source/_templates/layout.html create mode 100644 docs/source/code/code.rst create mode 100644 docs/source/conf.py create mode 100644 docs/source/conf.py.bk create mode 100644 docs/source/contact/contact.rst create mode 100644 docs/source/home/home.rst create mode 100644 docs/source/index.rst create mode 100644 requirements.txt diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..258b6c1 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,33 @@ +name: Build and Deploy Sphinx Docs + +on: push + +jobs: + build_and_deploy: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Install python + uses: actions/setup-python@v4 + with: + python-version: '3.9' + - name: Install dependencies and the python package + run: | + pip install -r requirements.txt + - name: Build docs + run: | + cd docs # Change to your Sphinx docs directory if not 'docs' + make html + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: html-docs + path: docs/build/html/ + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs/build/html # Adjust path to match where your HTML files are generated \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..06dbb34 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/docs/build +build/ +.vscode/ +.DS_Store \ No newline at end of file diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..b884c10 --- /dev/null +++ b/README.rst @@ -0,0 +1,5 @@ +Lumache +======= + +**Lumache** (/lu'make/) is a Python library for cooks and food lovers that +creates recipes mixing random ingredients. diff --git a/docs/CNAME b/docs/CNAME new file mode 100644 index 0000000..4a244c0 --- /dev/null +++ b/docs/CNAME @@ -0,0 +1 @@ +www.pnne.net \ No newline at end of file diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 0000000..d0c3cbf --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,20 @@ +# 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 + +# 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) diff --git a/docs/make.bat b/docs/make.bat new file mode 100644 index 0000000..747ffb7 --- /dev/null +++ b/docs/make.bat @@ -0,0 +1,35 @@ +@ECHO OFF + +pushd %~dp0 + +REM Command file for Sphinx documentation + +if "%SPHINXBUILD%" == "" ( + set SPHINXBUILD=sphinx-build +) +set SOURCEDIR=source +set BUILDDIR=build + +%SPHINXBUILD% >NUL 2>NUL +if errorlevel 9009 ( + echo. + echo.The 'sphinx-build' command was not found. Make sure you have Sphinx + echo.installed, then set the SPHINXBUILD environment variable to point + echo.to the full path of the 'sphinx-build' executable. Alternatively you + echo.may add the Sphinx directory to PATH. + echo. + echo.If you don't have Sphinx installed, grab it from + echo.https://www.sphinx-doc.org/ + exit /b 1 +) + +if "%1" == "" goto help + +%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% +goto end + +:help +%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% + +:end +popd diff --git a/docs/source/_static/CNAME b/docs/source/_static/CNAME new file mode 100644 index 0000000..4a244c0 --- /dev/null +++ b/docs/source/_static/CNAME @@ -0,0 +1 @@ +www.pnne.net \ No newline at end of file diff --git a/docs/source/_static/custom.css b/docs/source/_static/custom.css new file mode 100644 index 0000000..0657b8c --- /dev/null +++ b/docs/source/_static/custom.css @@ -0,0 +1,34 @@ +.red-text { + color: red; +} + +.green-text { + color: green; +} + +.dodgerblue-text { + color: dodgerblue; +} + +.goldenrod-text { + color: goldenrod +} + +.purple-text { + color: purple +} + +.brown-text { + color: brown +} + +.highlight-console pre { + font-size: 14px; +/* font-family: "Consolas", monospace */ +} + +code { +/* font-family: "Consolas", monospace; */ + font-size: 14px; + color:dodgerblue +} diff --git a/docs/source/_static/logo.png b/docs/source/_static/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..2a880e00c431444af5bf66299e9154481710b723 GIT binary patch literal 7970 zcmaJ`cRbtCyG|nb5;S&fvG-m@(b%)Gx7tcowWzH|>{**?YZO&#k1Dlijnb;UmD)91 zin`z4`}^Gc-<8id=Sa@TdCz&D^SsX+i`7#nC8j5aKp>==8Y%{0x$^G;2*7uRx-S7> z0rfIa$3QAa8MnZHa872L&bqn~KCliz@SzkCynju=7X(TV!T;|%1fm6H_}{t#l;=Nf zU=T>OD+Kp&@*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