Compare commits

..

2 Commits

Author SHA1 Message Date
Gustavo Henrique Santos Souza de Miranda 90aa646774 Merge remote-tracking branch 'origin/master' 2025-05-20 02:42:23 -03:00
Gustavo Henrique Santos Souza de Miranda 49c21e1857 Added Documentation using Sphinx to the project 2025-05-20 02:42:14 -03:00
4 changed files with 127 additions and 0 deletions

20
docs/Makefile Normal file
View 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)

35
docs/make.bat Normal file
View File

@ -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

47
docs/source/conf.py Normal file
View File

@ -0,0 +1,47 @@
import os
import sys
from recommonmark.transform import AutoStructify
# 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 = 'goulagSort'
copyright = '2025, Gustavo Henrique Santos Souza de Miranda'
author = 'Gustavo Henrique Santos Souza de Miranda'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = ['sphinx.ext.autodoc',
'sphinx.ext.napoleon',
'sphinx.ext.viewcode',
'sphinx.ext.todo',
'recommonmark'
]
templates_path = ['_templates']
exclude_patterns = []
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
def setup(app):
app.add_config_value('recommonmark_config', {
'auto_toc_tree_section': 'Contents',
'enable_math': False,
'enable_proxy_refs': False,
'enable_css_classes': True,
'enable_eval_rst': True,
}, True)
app.add_transform(AutoStructify)

25
docs/source/index.rst Normal file
View File

@ -0,0 +1,25 @@
.. Goulag Sort documentation master file, created by
sphinx-quickstart on [SUA_DATA_AQUI].
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Bem-vindo à documentação do Goulag Sort!
==========================================
Esta é a documentação da biblioteca Goulag Sort, que implementa um algoritmo de ordenação intencionalmente ineficiente.
.. toctree::
:maxdepth: 6
:caption: Contents:
modules
goulag_sort_detailed_explanation
Index and Tables
=================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`