Skip to content

Commit 200b35d

Browse files
committed
update documentation
1 parent 8571f8f commit 200b35d

9 files changed

Lines changed: 154 additions & 272 deletions

File tree

docs/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Minimal makefile for Sphinx documentation
22
#
33

4-
# You can set these variables from the command line.
5-
SPHINXOPTS =
6-
SPHINXBUILD = python -msphinx
7-
SPHINXPROJ = solid_node
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
88
SOURCEDIR = .
99
BUILDDIR = _build
1010

docs/conf.py

100755100644
Lines changed: 14 additions & 148 deletions
Original file line numberDiff line numberDiff line change
@@ -1,162 +1,28 @@
1-
#!/usr/bin/env python
1+
# Configuration file for the Sphinx documentation builder.
22
#
3-
# solid_node documentation build configuration file, created by
4-
# sphinx-quickstart on Fri Jun 9 13:47:02 2017.
5-
#
6-
# This file is execfile()d with the current directory set to its
7-
# containing dir.
8-
#
9-
# Note that not all possible configuration values are present in this
10-
# autogenerated file.
11-
#
12-
# All configuration values have a default; values that are commented out
13-
# serve to show the default.
14-
15-
# If extensions (or modules to document with autodoc) are in another
16-
# directory, add these directories to sys.path here. If the directory is
17-
# relative to the documentation root, use os.path.abspath to make it
18-
# absolute, like shown here.
19-
#
20-
import os
21-
import sys
22-
sys.path.insert(0, os.path.abspath('..'))
3+
# For the full list of built-in configuration values, see the documentation:
4+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
235

24-
import solid_node
6+
# -- Project information -----------------------------------------------------
7+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
258

26-
# -- General configuration ---------------------------------------------
9+
project = 'Solid Node'
10+
copyright = '2025, Luis Henrique Cassis Fagundes'
11+
author = 'Luis Henrique Cassis Fagundes'
12+
release = '0.0.7'
2713

28-
# If your documentation needs a minimal Sphinx version, state it here.
29-
#
30-
# needs_sphinx = '1.0'
14+
# -- General configuration ---------------------------------------------------
15+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
3116

32-
# Add any Sphinx extension module names here, as strings. They can be
33-
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
34-
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode']
17+
extensions = []
3518

36-
# Add any paths that contain templates here, relative to this directory.
3719
templates_path = ['_templates']
38-
39-
# The suffix(es) of source filenames.
40-
# You can specify multiple suffix as a list of string:
41-
#
42-
# source_suffix = ['.rst', '.md']
43-
source_suffix = '.rst'
44-
45-
# The master toctree document.
46-
master_doc = 'index'
47-
48-
# General information about the project.
49-
project = 'Solid Framework'
50-
copyright = "2023, Luis Fagundes"
51-
author = "Luis Fagundes"
52-
53-
# The version info for the project you're documenting, acts as replacement
54-
# for |version| and |release|, also used in various other places throughout
55-
# the built documents.
56-
#
57-
# The short X.Y version.
58-
version = solid_node.__version__
59-
# The full version, including alpha/beta/rc tags.
60-
release = solid_node.__version__
61-
62-
# The language for content autogenerated by Sphinx. Refer to documentation
63-
# for a list of supported languages.
64-
#
65-
# This is also used if you do content translation via gettext catalogs.
66-
# Usually you set "language" from the command line for these cases.
67-
language = None
68-
69-
# List of patterns, relative to source directory, that match files and
70-
# directories to ignore when looking for source files.
71-
# This patterns also effect to html_static_path and html_extra_path
7220
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
7321

74-
# The name of the Pygments (syntax highlighting) style to use.
75-
pygments_style = 'sphinx'
7622

77-
# If true, `todo` and `todoList` produce output, else they produce nothing.
78-
todo_include_todos = False
7923

24+
# -- Options for HTML output -------------------------------------------------
25+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
8026

81-
# -- Options for HTML output -------------------------------------------
82-
83-
# The theme to use for HTML and HTML Help pages. See the documentation for
84-
# a list of builtin themes.
85-
#
8627
html_theme = 'alabaster'
87-
88-
# Theme options are theme-specific and customize the look and feel of a
89-
# theme further. For a list of options available for each theme, see the
90-
# documentation.
91-
#
92-
# html_theme_options = {}
93-
94-
# Add any paths that contain custom static files (such as style sheets) here,
95-
# relative to this directory. They are copied after the builtin static files,
96-
# so a file named "default.css" will overwrite the builtin "default.css".
9728
html_static_path = ['_static']
98-
99-
100-
# -- Options for HTMLHelp output ---------------------------------------
101-
102-
# Output file base name for HTML help builder.
103-
htmlhelp_basename = 'solid_nodedoc'
104-
105-
106-
# -- Options for LaTeX output ------------------------------------------
107-
108-
latex_elements = {
109-
# The paper size ('letterpaper' or 'a4paper').
110-
#
111-
# 'papersize': 'letterpaper',
112-
113-
# The font size ('10pt', '11pt' or '12pt').
114-
#
115-
# 'pointsize': '10pt',
116-
117-
# Additional stuff for the LaTeX preamble.
118-
#
119-
# 'preamble': '',
120-
121-
# Latex figure (float) alignment
122-
#
123-
# 'figure_align': 'htbp',
124-
}
125-
126-
# Grouping the document tree into LaTeX files. List of tuples
127-
# (source start file, target name, title, author, documentclass
128-
# [howto, manual, or own class]).
129-
latex_documents = [
130-
(master_doc, 'solid_node.tex',
131-
'Solid Framework Documentation',
132-
'Luis Fagundes', 'manual'),
133-
]
134-
135-
136-
# -- Options for manual page output ------------------------------------
137-
138-
# One entry per manual page. List of tuples
139-
# (source start file, name, description, authors, manual section).
140-
man_pages = [
141-
(master_doc, 'solid_node',
142-
'Solid Framework Documentation',
143-
[author], 1)
144-
]
145-
146-
147-
# -- Options for Texinfo output ----------------------------------------
148-
149-
# Grouping the document tree into Texinfo files. List of tuples
150-
# (source start file, target name, title, author,
151-
# dir menu entry, description, category)
152-
texinfo_documents = [
153-
(master_doc, 'solid_node',
154-
'Solid Framework Documentation',
155-
author,
156-
'solid_node',
157-
'One line description of project.',
158-
'Miscellaneous'),
159-
]
160-
161-
162-

docs/contributing.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/history.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/index.rst

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
Welcome to SolidNode's documentation!
2-
=====================================
1+
Solid Node documentation
2+
========================
33

44
.. toctree::
55
:maxdepth: 2
66
:caption: Contents:
77

88
why-solid-node
99
quickstart
10-
overview
11-
contributing
12-
history
13-
14-
Indices and tables
15-
==================
16-
* :ref:`genindex`
17-
* :ref:`modindex`
18-
* :ref:`search`
10+
using-solid-node

docs/make.bat

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,31 @@ pushd %~dp0
55
REM Command file for Sphinx documentation
66

77
if "%SPHINXBUILD%" == "" (
8-
set SPHINXBUILD=python -msphinx
8+
set SPHINXBUILD=sphinx-build
99
)
1010
set SOURCEDIR=.
1111
set BUILDDIR=_build
12-
set SPHINXPROJ=solid_node
13-
14-
if "%1" == "" goto help
1512

1613
%SPHINXBUILD% >NUL 2>NUL
1714
if errorlevel 9009 (
1815
echo.
19-
echo.The Sphinx module was not found. Make sure you have Sphinx installed,
20-
echo.then set the SPHINXBUILD environment variable to point to the full
21-
echo.path of the 'sphinx-build' executable. Alternatively you may add the
22-
echo.Sphinx directory to PATH.
16+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17+
echo.installed, then set the SPHINXBUILD environment variable to point
18+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
19+
echo.may add the Sphinx directory to PATH.
2320
echo.
2421
echo.If you don't have Sphinx installed, grab it from
25-
echo.http://sphinx-doc.org/
22+
echo.https://www.sphinx-doc.org/
2623
exit /b 1
2724
)
2825

29-
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
26+
if "%1" == "" goto help
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
3029
goto end
3130

3231
:help
33-
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
3433

3534
:end
3635
popd

docs/quickstart.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,45 @@ Quickstart
77

88
Start by cloning solid-seed, which has a starting code for any project.
99

10-
```bash
10+
.. code-block:: bash
11+
1112
$ git clone https://github.com/LibreSolid/solid-seed.git myproject
12-
```
13-
13+
14+
1415
Then create a virtual environment for your project
1516

16-
```bash
17+
.. code-block:: bash
18+
1719
$ cd myproject
1820
$ virtualenv --python=python3 myproject-env
1921
$ source myproject-env/bin/activate
20-
```
2122
2223
And install solid-node in your environment
2324

24-
```bash
25+
.. code-block:: bash
26+
2527
$ pip install solid-node
26-
```
2728
2829
Make sure you have openscad installed
2930

30-
```bash
31+
.. code-block:: bash
32+
3133
$ sudo apt-get install openscad
32-
```
3334
3435
Start the solid process. By default, the web viewer is used.
3536

36-
```bash
37+
.. code-block:: bash
38+
3739
$ solid root develop
38-
```
3940
4041
Open the link http://localhost:8000 in your browser. If you prefer
4142
using Openscad as a viewer, use the --openscad parameter
4243

43-
```bash
44+
.. code-block:: bash
45+
4446
$ solid root develop --openscad
45-
```
4647
4748
Open `root/__init__.py` file in your prefered code editor and
48-
see your model updated in the viewer.
49+
see your model update in the viewer as you modify the code.
4950

5051
Check the _build directory for the STLs of your project.
51-

docs/readme.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)