Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[monitoring-docs] Restructured Documentation: New Unified Documentation Website #585

Merged
merged 43 commits into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
0bf0bfc
[docs] Re-structured docs
pandafy Apr 25, 2024
2daa075
[chores] Fixed URL mapping
pandafy Apr 25, 2024
fadb149
[chores] Fixed references
pandafy Apr 25, 2024
6776055
[chores] Fixed images
pandafy Apr 25, 2024
2ec3f97
[chores] Improved references
pandafy Apr 26, 2024
4a1de54
[chores] Added developer docs warning to all developer pages
pandafy Apr 26, 2024
782b615
[docs] Renamed overview to index
nemesifier May 16, 2024
2420738
[qa] Formatted with docstrfmt
pandafy May 27, 2024
4d37fc9
[docs] Restructured docs and fixed URLs
pandafy May 28, 2024
f415c68
[docs] Restructured developer docs
pandafy May 28, 2024
3c8bd3d
[docs] Restructured developer docs
pandafy May 29, 2024
441a8da
[docs] Fixed URLs
pandafy May 29, 2024
e3f2e87
[docs] Adaptive size improvement
nemesifier Jun 1, 2024
2d0e27b
[req-changes] Capitalized headings
pandafy Jun 6, 2024
bfedba6
[req-changes] Improved docs
pandafy Jun 6, 2024
141795b
[skip ci] Fixed README
pandafy Jun 6, 2024
6baf799
[docs] incorporated copy writer's changes
pandafy Jun 6, 2024
6fb3b4e
[req-changes] Fixed sphinx warnings
pandafy Jun 7, 2024
ea2ee24
[skip ci] Updated README
pandafy Jun 7, 2024
48f1ae7
[skip ci] Fixed references
pandafy Jun 14, 2024
6de98c0
[skip ci] Fixed references
pandafy Jun 14, 2024
b1dc18b
[skip ci] Updated index and fixed references
pandafy Jun 19, 2024
861c6d8
[skip ci] Point to Django 4.2 docs
pandafy Jun 19, 2024
04b7698
[skip ci] Updated README
pandafy Jul 8, 2024
537d068
[docs] Added link to github repo
nemesifier Jul 11, 2024
7c6c0c1
[docs] OpenWRT > OpenWrt
nemesifier Jul 13, 2024
5ddbe70
[skip ci] Fixed references to OpenWISP modules
pandafy Jul 15, 2024
620cc38
[skip ci] Integrated changes from fb2814b
pandafy Jul 15, 2024
2706f7d
[skip ci] Updated docs website URL
pandafy Jul 15, 2024
9e73831
[docs] Table of contents, consistency, fixes
nemesifier Jul 16, 2024
cda6886
[docs] Moved quickstart section to main docs
nemesifier Jul 18, 2024
933a4e0
[docs] Point to monitoring agent directly
nemesifier Jul 18, 2024
1c74f97
[docs] Reformatted
nemesifier Jul 18, 2024
bac1e38
[docs] Added architecture diagram
nemesifier Jul 22, 2024
de8f54a
[docs] Minor improvement to index
nemesifier Jul 23, 2024
45f67aa
[docs] Reformatted index
nemesifier Jul 23, 2024
72ef0a5
[docs] Reformatted [skip ci]
nemesifier Jul 27, 2024
c72a7fa
[docs] Fixed doc reference
nemesifier Jul 27, 2024
c2d7403
[docs:qa] Reformatted
nemesifier Jul 30, 2024
fdaef6c
[qa] Reformatted docstrings
nemesifier Jul 30, 2024
51a2995
Merge branch 'master' into reorder-docs
nemesifier Aug 1, 2024
34943a3
[docs] Fixed contributing
nemesifier Aug 1, 2024
41cd261
[qa] Don't skip README in docstrfmt
nemesifier Aug 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,267 changes: 50 additions & 3,217 deletions README.rst

Large diffs are not rendered by default.

496 changes: 496 additions & 0 deletions docs/developer/extending.rst

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions docs/developer/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Developer Docs
==============

.. include:: ../partials/developer-docs.rst

.. toctree::
:maxdepth: 2

./installation.rst
./utils.rst
./extending.rst

Other useful resources:

- :doc:`../user/rest-api`
- :doc:`../user/settings`
161 changes: 161 additions & 0 deletions docs/developer/installation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
Developer Installation Instructions
===================================

.. include:: ../partials/developer-docs.rst

.. contents:: **Table of contents**:
:depth: 2
:local:

Dependencies
------------

- Python >= 3.8
- InfluxDB 1.8
- fping
- OpenSSL

Installing for Development
--------------------------

Install the system dependencies:

Install system packages:

.. code-block:: shell

sudo apt update
sudo apt install -y sqlite3 libsqlite3-dev openssl libssl-dev
sudo apt install -y gdal-bin libproj-dev libgeos-dev libspatialite-dev libsqlite3-mod-spatialite
sudo apt install -y fping
sudo apt install -y chromium

Fork and clone the forked repository:

.. code-block:: shell

git clone git://github.com/<your_fork>/openwisp-monitoring

Navigate into the cloned repository:

.. code-block:: shell

cd openwisp-monitoring/

Start Redis and InfluxDB using Docker:

.. code-block:: shell

docker-compose up -d redis influxdb

Setup and activate a virtual-environment. (we'll be using `virtualenv
<https://pypi.org/project/virtualenv/>`_)

.. code-block:: shell

python -m virtualenv env
source env/bin/activate

Make sure that you are using pip version 20.2.4 before moving to the next
step:

.. code-block:: shell

pip install -U pip wheel setuptools

Install development dependencies:

.. code-block:: shell

pip install -e .
pip install -r requirements-test.txt
npm install -g jshint stylelint

Install WebDriver for Chromium for your browser version from
https://chromedriver.chromium.org/home and extract ``chromedriver`` to one
of directories from your ``$PATH`` (example: ``~/.local/bin/``).

Create database:

.. code-block:: shell

cd tests/
./manage.py migrate
./manage.py createsuperuser

Run celery and celery-beat with the following commands (separate terminal
windows are needed):

.. code-block:: shell

cd tests/
celery -A openwisp2 worker -l info
celery -A openwisp2 beat -l info

Launch development server:

.. code-block:: shell

./manage.py runserver 0.0.0.0:8000

You can access the admin interface at ``http://127.0.0.1:8000/admin/``.

Run tests with:

.. code-block:: shell

./runtests.py # using --parallel is not supported in this module

Run quality assurance tests with:

.. code-block:: shell

./run-qa-checks

Alternative Sources
-------------------

PyPI
~~~~

To install the latest stable version from pypi:

.. code-block:: shell

pip install openwisp-monitoring

Github
~~~~~~

To install the latest development version tarball via HTTPs:

.. code-block:: shell

pip install https://github.com/openwisp/openwisp-monitoring/tarball/master

Alternatively you can use the git protocol:

.. code-block:: shell

pip install -e git+git://github.com/openwisp/openwisp-monitoring#egg=openwisp_monitoring

Install and Run on Docker
-------------------------

.. warning::

This Docker image is for development purposes only.

For the official OpenWISP Docker images, see: :doc:`/docker/index`.

Build from the Dockerfile:

.. code-block:: shell

docker-compose build

Run the docker container:

.. code-block:: shell

docker-compose up
Loading