init commit
This commit is contained in:
20
docs/Makefile
Normal file
20
docs/Makefile
Normal file
@@ -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)
|
||||
28
docs/source/conf.py
Normal file
28
docs/source/conf.py
Normal file
@@ -0,0 +1,28 @@
|
||||
# Configuration file for the Sphinx documentation builder.
|
||||
#
|
||||
# For the full list of built-in configuration values, see the documentation:
|
||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
||||
|
||||
project = 'Rskio'
|
||||
copyright = '2024, rskntroot'
|
||||
author = 'rskntroot'
|
||||
release = '1.0.0'
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
||||
|
||||
# Markdown Support - https://www.sphinx-doc.org/en/master/usage/markdown.html
|
||||
extensions = ['myst_parser']
|
||||
|
||||
templates_path = ['_templates']
|
||||
exclude_patterns = []
|
||||
|
||||
# -- Options for HTML output -------------------------------------------------
|
||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
||||
|
||||
# PyData Theme - https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html (0.15.3)
|
||||
html_theme = "pydata_sphinx_theme"
|
||||
html_static_path = ['_static']
|
||||
40
docs/source/docs/example.md
Normal file
40
docs/source/docs/example.md
Normal file
@@ -0,0 +1,40 @@
|
||||
# Example
|
||||
|
||||
## This is an Example Markdown File
|
||||
|
||||
### sphinx-docs
|
||||
|
||||
Sphinx Docs can be described as "website as code" similar to "infrastructure as code".
|
||||
|
||||
Currently, this site is built out with the following components:
|
||||
|
||||
```
|
||||
docker:
|
||||
img: python:alpine
|
||||
os:
|
||||
apk: py3-sphinx
|
||||
python:
|
||||
pip:
|
||||
- myst-parser
|
||||
- pydata-sphinx-theme
|
||||
```
|
||||
|
||||
Sphinx is used generate the html for site which can then be hosted separately:
|
||||
|
||||
Generate Command:
|
||||
```
|
||||
make html
|
||||
```
|
||||
|
||||
Hosting:
|
||||
```
|
||||
docker:
|
||||
img: nginx:latest
|
||||
```
|
||||
|
||||
#### Testing
|
||||
|
||||
```
|
||||
cd /opt/docker
|
||||
docker run -it --rm -v ./docs/build/html:/opt/sphinx/html/:ro -v ./nginx/etc/conf.d/:/etc/nginx/conf.d/:ro -p 9999:80 nginx:latest
|
||||
```
|
||||
21
docs/source/index.rst
Normal file
21
docs/source/index.rst
Normal file
@@ -0,0 +1,21 @@
|
||||
.. Rskio documentation master file, created by
|
||||
sphinx-quickstart on Wed May 29 05:30:27 2024.
|
||||
You can adapt this file completely to your liking, but it should at least
|
||||
contain the root `toctree` directive.
|
||||
|
||||
Rskio
|
||||
=====
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:caption: Contents:
|
||||
|
||||
./docs/example.md
|
||||
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
||||
* :ref:`genindex`
|
||||
* :ref:`modindex`
|
||||
* :ref:`search`
|
||||
Reference in New Issue
Block a user