Split BlenderBIM and other docs to not overwhelm users. Use Furo theme for Sphinx.

This commit is contained in:
Dion Moult
2022-05-04 13:06:39 +10:00
parent 6e55a04550
commit 8c3e29c351
38 changed files with 334 additions and 108 deletions
+20
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 = .
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)
@@ -0,0 +1,16 @@
BIMServer-Plugin
================
This documentation is free software! You are free to contribute and help write
this document.
.. toctree::
:maxdepth: 1
:caption: Contents:
Indices and tables
------------------
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
@@ -0,0 +1,16 @@
BIMTester
=========
This documentation is free software! You are free to contribute and help write
this document.
.. toctree::
:maxdepth: 1
:caption: Contents:
Indices and tables
------------------
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
+72
View File
@@ -0,0 +1,72 @@
# BlenderBIM Add-on - OpenBIM Blender Add-on
# Copyright (C) 2020, 2021 Dion Moult <dion@thinkmoult.com>
#
# This file is part of BlenderBIM Add-on.
#
# BlenderBIM Add-on is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# BlenderBIM Add-on is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
# -- Project information -----------------------------------------------------
project = "IfcOpenShell"
copyright = "2020, IfcOpenShell Contributors"
author = "IfcOpenShell Contributors"
# The full version, including alpha/beta/rc tags
release = "0.0.1"
# -- General configuration ---------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ["sphinx.ext.autodoc"]
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
# -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "furo"
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
+16
View File
@@ -0,0 +1,16 @@
IfcClash
========
This documentation is free software! You are free to contribute and help write
this document.
.. toctree::
:maxdepth: 1
:caption: Contents:
Indices and tables
------------------
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
+16
View File
@@ -0,0 +1,16 @@
IfcCOBie
========
This documentation is free software! You are free to contribute and help write
this document.
.. toctree::
:maxdepth: 1
:caption: Contents:
Indices and tables
------------------
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
@@ -0,0 +1,16 @@
IfcConvert
==========
This documentation is free software! You are free to contribute and help write
this document.
.. toctree::
:maxdepth: 1
:caption: Contents:
Indices and tables
------------------
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
+16
View File
@@ -0,0 +1,16 @@
IfcDiff
=======
This documentation is free software! You are free to contribute and help write
this document.
.. toctree::
:maxdepth: 1
:caption: Contents:
Indices and tables
------------------
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
+16
View File
@@ -0,0 +1,16 @@
IfcMax
======
This documentation is free software! You are free to contribute and help write
this document.
.. toctree::
:maxdepth: 1
:caption: Contents:
Indices and tables
------------------
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
@@ -0,0 +1,19 @@
IfcOpenShell-Python
===================
This documentation is free software! You are free to contribute and help write
this document.
.. toctree::
:maxdepth: 1
:caption: Contents:
ifcopenshell-python/quickstart
ifcopenshell-python/api-documentation
Indices and tables
------------------
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
@@ -0,0 +1,21 @@
API Documentation
=================
.. automodule:: ifcopenshell.entity_instance
:members:
.. automodule:: ifcopenshell.file
:members:
.. automodule:: ifcopenshell.guid
:members:
.. automodule:: ifcopenshell.template
:members:
.. automodule:: ifcopenshell.validate
:members:
.. automodule:: ifcopenshell.ids
:members:
@@ -0,0 +1,5 @@
Quickstart
==========
For starters, you can read `Using IfcOpenShell to parse IFC files with Python
<https://thinkmoult.com/using-ifcopenshell-parse-ifc-files-python.html>`_
@@ -0,0 +1,16 @@
IfcOpenShell
============
This documentation is free software! You are free to contribute and help write
this document.
.. toctree::
:maxdepth: 1
:caption: Contents:
Indices and tables
------------------
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
@@ -0,0 +1,18 @@
IfcSverchok
===========
This documentation is free software! You are free to contribute and help write
this document.
.. toctree::
:maxdepth: 1
:caption: Contents:
ifcsverchok/installation
Indices and tables
------------------
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
@@ -0,0 +1,109 @@
Installation
============
There are different methods of installation, depending on your situation.
1. **Packaged installation** is recommended for regular users.
2. **Daily build installation** is recommended for power users helping with testing.
3. **Source installation** is recommended for developers.
Packaged installation
---------------------
IfcSverchok is packaged like a regular Blender add-on, so installation is the
same as any other Blender add-on. You can download the package for installation
at the `Get BlenderBIM <https://blenderbim.org/download.html>`__ website.
Like all Blender add-ons, they can be installed using ``Edit > Preferences >
Addons > Install > Choose Downloaded ZIP > Enable Add-on Checkbox``. You can
enable add-ons permanently by using ``Save User Settings`` from the Addons menu.
Before installing, you will also need to `install the BlenderBIM Add-on
<../blenderbim/installation>`__ and `install Sverchok
<https://github.com/nortikin/sverchok#installation>`__.
If you downloaded Blender as a ``.zip`` file without running an installer, you
will find IfcSverchok installed in the following directory, where ``2.XX`` is
the Blender version:
::
/path/to/blender/2.XX/scripts/addons/
Otherwise, if you installed Blender using an installation package, the add-ons
folder depends on which operating system you use. On Linux:
::
~/.config/blender/2.XX/scripts/addons/
On Mac:
::
/Users/{YOUR_USER}/Library/Application Support/Blender/2.XX/
On Windows:
::
C:\Users\{YOUR_USER}\AppData\Roaming\Blender Foundation\2.XX\scripts\addons
Upon installation, IfcSverchok is stored in the ``ifcsverchok/`` directory.
Daily build installation
------------------------
Daily builds are almost the same as **Packaged installation**, except that they
are typically updated every day. Simply download a daily build from the `Github
releases page <https://github.com/IfcOpenShell/IfcOpenShell/releases>`__, then
follow the same instructions as a packaged installation.
TODO: daily builds not yet available
Daily builds are not always stable. Sometimes, a build may be delayed, or
contain broken code. We try to avoid this, but it happens.
Source installation
-------------------
It is possible to run the latest bleeding edge version of IfcSverchok without
having to wait for an official release, since IfcSverchok is coded in Python and
doesn't require any compilation.
Just symbolically link the IfcSverchok add-on files to your Git repository. If
you're on Windows, use ``mklink`` instead. This allows us to code in our Git
repository, and see the changes in our Blender installation.
::
$ git clone https://github.com/IfcOpenShell/IfcOpenShell.git
$ cd IfcOpenShell
# Link the repository to blender
$ ln -s src/ifcsverchok /path/to/blender/2.XX/scripts/addons/ifcsverchok
On Windows:
::
$ git clone https://github.com/IfcOpenShell/IfcOpenShell.git
$ cd IfcOpenShell
# Link the repository to blender
$ mklink /D "\path\to\blender\2.XX\scripts\addons\ifcsverchok" "\path\to\src\ifcsverchok"
After you modify your code in the Git repository, you will need to restart
Blender for the changes to take effect. In ``Edit > Preferences > Add-ons`` you
will see that the version number of IfcSverchok has changed to ``0.0.999999``,
which represents an un-versioned IfcSverchok.
Updating
--------
First uninstall the current IfcSverchok, then install the latest version.
Uninstalling
------------
Navigate to ``Edit > Preferences > Add-ons``, find the IfcSverchok add-on, and
press ``Remove``.
Alternatively, you may uninstall manually by deleting the ``ifcsverchok/``
directory in your Blender add-ons directory.
+32
View File
@@ -0,0 +1,32 @@
Let's learn IfcOpenShell
========================
IfcOpenShell is a
A coloured icon: :octicon:`report;1em;sd-text-info`, some more text.
:bdg:`plain badge`
.. toctree::
:maxdepth: 1
:caption: Contents:
ifcopenshell
ifcopenshell-python
ifcconvert
blenderbim
bimtester
ifcdiff
ifcclash
ifccobie
ifcmax
ifcsverchok
bimserver-plugin
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
+35
View File
@@ -0,0 +1,35 @@
@ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=.
set BUILDDIR=_build
if "%1" == "" goto help
%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.http://sphinx-doc.org/
exit /b 1
)
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end
:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
:end
popd