Skip to content

Commit

Permalink
Move docs to docs-sphinx folder
Browse files Browse the repository at this point in the history
  • Loading branch information
subhashb committed Mar 23, 2024
1 parent f05094c commit ab2f129
Show file tree
Hide file tree
Showing 36 changed files with 22 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ tag = True

[bumpversion:file:pyproject.toml]

[bumpversion:file:docs/conf.py]
[bumpversion:file:docs-sphinx/conf.py]

[bumpversion:file:src/protean/__init__.py]

[bumpversion:file:src/protean/template/{{package_name}}/setup.py.jinja]

[bumpversion:file:docs/user/installation.rst]
[bumpversion:file:docs-sphinx/user/installation.rst]
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ end_of_line = crlf
[*.py]
max_line_length = 119

[docs/**.rst]
[docs-sphinx/**.rst]
max_line_length = 119
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exclude =
.tox,
.git,
__pycache__,
docs/source/conf.py,
docs-sphinx/source/conf.py,
build,
dist,
conftest.py,
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ instance/
.scrapy

# Sphinx documentation
docs/_build/
docs-sphinx/_build/

# PyBuilder
target/
Expand Down Expand Up @@ -136,7 +136,7 @@ output/*/index.html
.vscode

# Sphinx
docs/.doctrees
docs-sphinx/.doctrees

# TODOs
TODO
Expand Down
6 changes: 3 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ build:
tools:
python: "3.11"

# Build documentation in the docs/ directory with Sphinx
# Build documentation in the docs-sphinx/ directory with Sphinx
sphinx:
configuration: docs/conf.py
configuration: docs-sphinx/conf.py

# Explicitly set the version of Python and its requirements
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements.txt
- requirements: docs-sphinx/requirements.txt
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Read more about `coverage <https://coverage.readthedocs.io>`__.
Building the docs
`````````````````

Build the docs in the ``docs`` directory using Sphinx.
Build the docs in the ``docs-sphinx`` directory using Sphinx.

.. code-block:: text
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ down:
docker-compose down --remove-orphans

html:
@cd docs; $(MAKE) html
@cd docs-sphinx; $(MAKE) html

test-full: up
protean test
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion docs/conf.py → docs-sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

import datetime
import os

extensions = [
Expand All @@ -25,7 +26,7 @@
source_suffix = ".rst"
master_doc = "index"
project = "Protean"
year = "2021"
year = datetime.date.today().strftime("%Y")
author = "Subhash Bhushan C"
copyright = "{0}, {1}".format(year, author)
version = release = "0.11.0"
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions docs-sphinx/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
livereload = ">=2.6.3"
sphinx = ">=7.2.6"
sphinx-tabs = ">=3.4.4"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion docs/requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion src/protean/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def livereload_docs():
from livereload import Server, shell

server = Server()
server.watch("docs/**/*.rst", shell("make html"))
server.watch("docs-sphinx/**/*.rst", shell("make html"))
server.watch("./*.rst", shell("make html"))
server.serve(root="build/html", debug=True)

Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ commands =
setenv =
SPELLCHECK=1
commands =
sphinx-build -b spelling docs dist/docs
sphinx-build -b spelling docs-sphinx docs-sphinx/docs
skip_install = true
deps =
-r{toxinidir}/docs/requirements.txt
-r{toxinidir}/docs-sphinx/requirements.txt
sphinxcontrib-spelling
pyenchant

[testenv:docs]
deps =
-r{toxinidir}/docs/requirements.txt
-r{toxinidir}/docs-sphinx/requirements.txt
commands =
sphinx-build {posargs:-E} -b html docs dist/docs
sphinx-build -b linkcheck docs dist/docs
sphinx-build {posargs:-E} -b html docs-sphinx dist/docs-sphinx
sphinx-build -b linkcheck docs-sphinx dist/docs-sphinx

[testenv:check]
deps =
Expand Down

0 comments on commit ab2f129

Please sign in to comment.