From 58beb33d4fd36456a1057d111fd764842c358474 Mon Sep 17 00:00:00 2001 From: rebortg Date: Fri, 1 Apr 2022 11:42:53 +0200 Subject: add sphinx panels and create 6 panels on index.rst (cherry picked from commit 9708481d5e539a4b5c3d13b1a774abcda84df138) --- Pipfile | 1 + docker/Dockerfile | 2 ++ docs/_static/css/custom.css | 5 +++++ docs/conf.py | 2 ++ docs/index.rst | 52 ++++++++++++++++++++++++++++++++++++++++++--- requirements.txt | 2 +- 6 files changed, 60 insertions(+), 4 deletions(-) diff --git a/Pipfile b/Pipfile index 423092c4..142abdcf 100644 --- a/Pipfile +++ b/Pipfile @@ -9,6 +9,7 @@ docutils = "*" lxml = "*" sphinx-notfound-page = "*" Sphinx = ">=1.4.3" +sphinx-panels = "*" [dev-packages] diff --git a/docker/Dockerfile b/docker/Dockerfile index 17e7630f..9b3195df 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -34,6 +34,8 @@ RUN pip3 install sphinx-rtd-theme RUN pip3 install sphinx-autobuild RUN pip3 install sphinx-notfound-page RUN pip3 install lxml +RUN pip3 install myst-parser +RUN pip3 install sphinx-panels # Cleanup diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css index 10596a39..331a7720 100644 --- a/docs/_static/css/custom.css +++ b/docs/_static/css/custom.css @@ -1,3 +1,8 @@ +div.card-header { + font-weight: bold; + background: #fdab10; +} + span.opcmd, span.cfgcmd { font-weight: bold; diff --git a/docs/conf.py b/docs/conf.py index 3d011ad5..661ff06d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -45,6 +45,8 @@ extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.ifconfig', 'sphinx.ext.graphviz', 'notfound.extension', + 'myst_parser', + 'sphinx_panels', 'vyos' ] diff --git a/docs/index.rst b/docs/index.rst index f81adfc8..603dcb73 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -4,7 +4,53 @@ VyOS User Guide ############### +.. panels:: + :container: container-lg pb-3 + :column: col-lg-4 col-md-4 col-sm-6 col-xs-12 p-2 + + Get / Build VyOS + ^^^^^^^^^^^^^^^^ + Quickly :ref:`Build` your own Image or take a look at how to :ref:`download` a free or supported version. + --- + + Install VyOS + ^^^^^^^^^^^^ + Read about how to install VyOS on :ref:`Bare Metall` or in a + :ref:`Virtual Environment` and + how to use an image with the usual :ref:`cloud` providers + --- + + Configuration and Operation + ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + Use the :ref:`Quickstart Guide`, to have a fast overview. Or go deeper and + set up :ref:`advanced routing`, + :ref:`VRFs`, or + :ref:`VPNs` for example. + --- + + Automate + ^^^^^^^^ + Integrate VyOS in your automation Workflow with + :ref:`Ansible`, + have your own :ref:`local scripts`, or configure VyOS with the :ref:`HTTPS-API`. + --- + + Examples + ^^^^^^^^ + Get some inspiration from the :ref:`Configuration Blueprints` + to build your infrastructure. + --- + + Contribute and Community + ^^^^^^^^^^^^^^^^^^^^^^^^ + | There are many ways to contribute to the project. + | Add missing parts or improve the :ref:`Documentation`. + | Discuss in `Slack `_ or the `Forum `_. + | Or you can pick up a `Task `_ and fix the :ref:`code`. + + .. toctree:: + :hidden: :maxdepth: 1 introducing/about @@ -14,7 +60,7 @@ VyOS User Guide .. toctree:: :maxdepth: 2 - :includehidden: + :hidden: :caption: First Steps installation/index @@ -23,7 +69,7 @@ VyOS User Guide .. toctree:: :maxdepth: 2 - :includehidden: + :hidden: :caption: Adminguide @@ -36,7 +82,7 @@ VyOS User Guide .. toctree:: :maxdepth: 2 - :includehidden: + :hidden: :caption: Development contributing/index diff --git a/requirements.txt b/requirements.txt index 7bb02202..de195af2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,4 @@ setuptools docutils lxml sphinx-notfound-page -docutils<0.18 +docutils<0.18 \ No newline at end of file -- cgit v1.2.3