From 4880a7cbed435b6c9650950c759e22afc84ec219 Mon Sep 17 00:00:00 2001 From: mmRoshani Date: Sat, 21 Dec 2024 01:33:07 +0330 Subject: [PATCH] OPS[app]: github action --- .github/workflows/docs.yml | 4 ++-- .gitignore | 8 ++++---- docs/Makefile | 2 +- docs/conf.py | 8 +++----- docs/make.bat | 2 +- 5 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 4091f00..ed7d1b2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -29,7 +29,7 @@ jobs: run: | cd docs make html - touch _build/.nojekyll + touch build/.nojekyll # Step 5: Deploy to GitHub Pages - name: Deploy to GitHub Pages @@ -37,4 +37,4 @@ jobs: with: github_token: ${{ secrets.GH_TOKEN_FOR_SAFE_PFL }} publish_branch: gh-pages - publish_dir: docs/_build/html/ + publish_dir: docs/build/html/ diff --git a/.gitignore b/.gitignore index 91f88fe..20c0cdf 100644 --- a/.gitignore +++ b/.gitignore @@ -69,7 +69,7 @@ instance/ .scrapy # Sphinx documentation -docs/_build/ +docs/build/ # PyBuilder .pybuilder/ @@ -174,6 +174,6 @@ cython_debug/ .vscode/ .vscode/* -docs/_build/ -docs/_static/ -docs/_templates \ No newline at end of file +docs/build/ +docs/static/ +docs/templates \ No newline at end of file diff --git a/docs/Makefile b/docs/Makefile index d4bb2cb..ed88099 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -6,7 +6,7 @@ SPHINXOPTS ?= SPHINXBUILD ?= sphinx-build SOURCEDIR = . -BUILDDIR = _build +BUILDDIR = build # Put it first so that "make" without argument is like "make help". help: diff --git a/docs/conf.py b/docs/conf.py index f5986fc..bd7159a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -21,14 +21,12 @@ # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration extensions = [ - "sphinx.ext.duration", - "sphinx.ext.doctest", "sphinx.ext.autodoc", "sphinx.ext.autosummary", ] -templates_path = ["_templates"] +templates_path = ["templates"] exclude_patterns = [ - "_build", + "build", "Thumbs.db", ] @@ -37,4 +35,4 @@ # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output html_theme = "sphinx_rtd_theme" -html_static_path = ["static"] +htmlstatic_path = ["static"] diff --git a/docs/make.bat b/docs/make.bat index 32bb245..8f56beb 100644 --- a/docs/make.bat +++ b/docs/make.bat @@ -8,7 +8,7 @@ if "%SPHINXBUILD%" == "" ( set SPHINXBUILD=sphinx-build ) set SOURCEDIR=. -set BUILDDIR=_build +set BUILDDIR=build %SPHINXBUILD% >NUL 2>NUL if errorlevel 9009 (