Skip to content

Commit

Permalink
docs - initial sphinx implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
superstes committed Mar 28, 2021
1 parent feb4c23 commit 748c7a2
Show file tree
Hide file tree
Showing 10 changed files with 322 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ It's simple. And should also remain so if you have little time for it.
<a href="mailto:contact@growautomation.eu">contact@growautomation.eu</a>

## Version
<img src="https://readthedocs.org/projects/growautomation/badge/?version=latest&style=plastic">
<br><br>

__The code is currently not in a stable state !__

Expand Down
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -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 changes: 35 additions & 0 deletions docs/make.bat
Original file line number Diff line number Diff line change
@@ -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

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
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sphinx sphinx-rtd-theme
160 changes: 160 additions & 0 deletions docs/source/_static/img/ga02c.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions docs/source/basic/intro.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
=====
Intro
=====

Links
*****
* `Source on GitHub <https://github.com/superstes/growautomation>`_
* `Video tutorials <https://www.youtube.com/channel/UCLJyDlo3Z6eP_X2Pw0-Z8Pw>`_
* `Demo system <https://demo.growautomation.at/>`_

What is GrowAutomation?
***********************

Aim of this project
===================
* monitor grow environments
* start actions based on conditions
* plant monitoring to analyze success or failure
* making setup and maintenance easier

* blueprint for physical setup
* tutorial videos
* passing known issues and their solutions

* extension by external scripts
* being an independent system
* building a community around this ideas


This project is not
===================
* yet in a stable state


Features
********
* support for custom scripts used in the input and output workflow
* input workflow

* timed loop to pull data from sensors

* output workflow

* support for complex conditions
* self-reverseable actors

* webinterface for user interactions

* configuration management
* data visualization
* system management
* mobile support
14 changes: 14 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
project = 'GrowAutomation'
copyright = '2021, René Pascal Rath'
author = 'René Pascal Rath'
extensions = [
'sphinx_rtd_theme',
]
templates_path = ['_templates']
exclude_patterns = []
html_theme = 'sphinx_rtd_theme'
html_theme_options = {}
html_static_path = ['_static']
html_logo = '_static/img/ga02c.svg'
navtree_shift = True
navtree_root_links = True
18 changes: 18 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
=====
Index
=====

.. toctree::
:caption: Basic
:glob:
:maxdepth: 2

basic/*


.. toctree::
:caption: Manual
:glob:
:maxdepth: 2

manual/*
11 changes: 11 additions & 0 deletions docs/source/manual/input.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
==============
Input workflow
==============

Description
***********
Input are used to gather sensor data.

This data can be analyzed or be used for decition making in output-conditions.


9 changes: 9 additions & 0 deletions docs/source/manual/output.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
===============
Output workflow
===============

Description
***********
The output workflow is used to start actions when some condition is met.

You can define those conditions as you need.

0 comments on commit 748c7a2

Please sign in to comment.