Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,18 @@ $ tox -e docs-dev -- -j 4

In case tox will report errors like ```module not found``` when that module was previously used
then remove .tox folder and run tox again.

## Site layout and theme

The site uses the [PyData Sphinx Theme](https://pydata-sphinx-theme.readthedocs.io/)
with [sphinx-design](https://sphinx-design.readthedocs.io/) (cards, tabs, grids)
and [sphinx-copybutton](https://sphinx-copybutton.readthedocs.io/).

* The hidden `toctree` at the bottom of `index.rst` defines the top navigation
bar. Each entry is one section; its pages appear in the left sidebar.
* Section landing pages live in `get-started/`, `install/`, `configure/`,
`reference/` and `contribute/`. Existing guides keep their original URLs.
* Brand colours and card styles are in `_static/custom.css`.
* Define new terms in `reference/glossary.rst` and link to them with
``:term:`vRouter` ``. Prefer ``:ref:`label` `` or ``:doc:`path` `` over
hard-coded URLs for internal links so broken links fail the build.
58 changes: 58 additions & 0 deletions _static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/* OpenSDN brand colours for the PyData Sphinx Theme.
Teal is taken from the OpenSDN cloud logo. */
html[data-theme="light"] {
--pst-color-primary: #1f8a8c;
--pst-color-primary-bg: #e3f4f4;
--pst-color-secondary: #3b6fd8;
--pst-color-link: #1a7678;
--pst-color-link-hover: #0f5557;
}

html[data-theme="dark"] {
--pst-color-primary: #5cc9cb;
--pst-color-primary-bg: #12393a;
--pst-color-secondary: #8fb0ff;
--pst-color-link: #6fd3d5;
--pst-color-link-hover: #a4e6e7;
}

/* Announcement bar: calm, not alarming */
.bd-header-announcement {
background-color: var(--pst-color-primary-bg);
color: var(--pst-color-text-base);
}
.bd-header-announcement a { color: var(--pst-color-link); }
.bd-header-announcement::after { display: none; }

/* ---------- Landing page ---------- */
.landing-hero {
padding: 2.5rem 0 1.5rem;
}
.landing-hero h1 {
font-size: 2.6rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.landing-hero p.lead {
font-size: 1.2rem;
max-width: 46rem;
color: var(--pst-color-text-muted);
}

/* Cards: equal height, subtle lift on hover */
.sd-card {
border-radius: 0.6rem;
transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.sd-card:hover {
transform: translateY(-2px);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.sd-card .sd-card-title {
font-weight: 600;
}
.sd-card .sd-card-title .sd-octicon,
.sd-card .sd-card-title svg {
color: var(--pst-color-primary);
margin-right: 0.35rem;
}
71 changes: 68 additions & 3 deletions conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,70 @@
from docs_conf.conf import *
from docs_conf.conf import * # noqa: F401,F403 (reads conf.yaml)

#extensions = ['recommonmark']
html_sidebars = { '**': ['globaltoc.html', 'sourcelink.html', 'searchbox.html'] }
# ---------------------------------------------------------------------------
# Theme: PyData Sphinx Theme
# * top navbar = the sections listed in the root toctree (index.rst)
# * left sidebar = only the pages of the current section
# * right sidebar = "On this page" headings
# ---------------------------------------------------------------------------
html_title = "OpenSDN Documentation"
html_css_files = ["custom.css"]

# lfdocs-conf sets a Bootstrap-era sidebar list; let the theme decide instead.
html_sidebars = {
"index": [], # landing page is full width
"**": ["sidebar-nav-bs"],
}

html_context = {
"github_user": "OpenSDN-io",
"github_repo": "docs",
"github_version": "master",
"doc_path": "",
"default_mode": "auto", # follow the reader's light/dark setting
}

html_theme_options = {
"logo": {"text": "OpenSDN"},
"header_links_before_dropdown": 7,
"navbar_align": "left",
"navbar_end": ["theme-switcher", "navbar-icon-links"],
"icon_links": [
{
"name": "GitHub",
"url": "https://github.com/OpenSDN-io",
"icon": "fa-brands fa-github",
},
{
"name": "Gerrit (code review)",
"url": "https://gerrit.opensdn.io",
"icon": "fa-solid fa-code-pull-request",
},
{
"name": "Bug tracker",
"url": "https://plane.opensdn.io",
"icon": "fa-solid fa-bug",
},
],
"use_edit_page_button": True,
"show_toc_level": 2,
"navigation_depth": 3,
"collapse_navigation": False,
"show_prev_next": True,
"footer_start": ["copyright"],
"footer_end": ["sphinx-version"],
"announcement": (
"OpenSDN was formerly known as Contrail, OpenContrail and Tungsten "
"Fabric. Older names still appear in some pages — see the "
'<a href="https://docs.opensdn.io/reference/glossary.html">glossary</a>.'
),
}

# Copy button: strip shell prompts so pasted commands run as-is.
copybutton_prompt_text = r"\$ |# |>>> |\.\.\. "
copybutton_prompt_is_regexp = True

# Link previews (Slack, Teams, social)
ogp_site_url = "https://docs.opensdn.io/"
ogp_site_name = "OpenSDN Documentation"
ogp_image = "https://docs.opensdn.io/_static/logo.png"
ogp_social_cards = {"enable": False} # needs matplotlib; enable later if wanted
17 changes: 9 additions & 8 deletions conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ project: OpenSDN
release: master
version: master
author: OpenSDN
copyright: 2024, OpenSDN
# "{}" is replaced with the current year by lfdocs-conf
copyright: "{}, OpenSDN"

needs_sphinx: '1.6.5'
needs_sphinx: '7.0'
extensions:
- sphinx.ext.autodoc
- sphinx.ext.doctest
Expand All @@ -14,22 +15,22 @@ extensions:
- sphinx.ext.todo
- sphinx.ext.coverage
- sphinx.ext.viewcode
- sphinx_design
- sphinx_copybutton
- sphinxext.opengraph
exclude_patterns:
- .DS_Store
- _build
- Thumbs.db
- .tox
- docsTools
- .git
- README.md
todo_include_todos: false

html_favicon: _static/favicon.ico
html_logo: _static/logo.png
html_static_path:
- _static
html_theme: bootstrap
html_theme_options:
bootswatch_theme: spacelab
navbar_sidebarrel: true
source_link_position: footer
globaltoc_depth: 3
html_theme: pydata_sphinx_theme
# Theme options are set in conf.py (they need Python values).
41 changes: 41 additions & 0 deletions configure/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.. This work is licensed under the Creative Commons Attribution 4.0 International License.

.. _configure:

Configure
=========

Task-oriented guides for configuring OpenSDN after it is installed. For how
the underlying components work, see :doc:`/opensdn-feature-architecture-guide/index`.

.. grid:: 1 1 3 3
:gutter: 3

.. grid-item-card:: :octicon:`shield-lock;1.2em` Networking & security
:link: /opensdn-networking-and-security-user-guide/index
:link-type: doc

Virtual networks, next-hop limits and static routes for service
chaining.

.. grid-item-card:: :octicon:`container;1.2em` Cloud-native (Kubernetes)
:link: /opensdn-cloud-native-user-guide/index
:link-type: doc

Keystone in Kubernetes, flow stickiness, KubeVirt and dynamic
MAC/IP learning.

.. grid-item-card:: :octicon:`globe;1.2em` Service-provider features
:link: /opensdn-service-provider-focused-features-guide/index
:link-type: doc

Data-plane tuning, multihoming, remote compute, routing policy and
fast convergence.

.. toctree::
:hidden:
:maxdepth: 2

Networking & security <../opensdn-networking-and-security-user-guide/index>
Cloud-native (Kubernetes) <../opensdn-cloud-native-user-guide/index>
Service-provider features <../opensdn-service-provider-focused-features-guide/index>
44 changes: 44 additions & 0 deletions contribute/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.. This work is licensed under the Creative Commons Attribution 4.0 International License.

.. _contribute:

Contribute
==========

OpenSDN is developed in the open. Code and documentation changes are
reviewed in `Gerrit <https://gerrit.opensdn.io>`_; bugs are tracked in the
`OpenSDN Bug Tracker <https://plane.opensdn.io>`_.

.. grid:: 1 1 2 2
:gutter: 3

.. grid-item-card:: :octicon:`people;1.2em` Contributing guide
:link: /contributing-to-opensdn/index
:link-type: doc

Set up your environment, submit blueprints, code and tests, and get
them reviewed.

.. grid-item-card:: :octicon:`pencil;1.2em` Writing documentation
:link: /contributing-to-opensdn/writing-style
:link-type: doc

Writing style, word choice and RST conventions for these docs.

.. grid-item-card:: :octicon:`workflow;1.2em` Infrastructure & CI
:link: /infrastructure/index
:link-type: doc

How the OpenSDN CI/CD, Gerrit and related tooling are set up.

.. grid-item-card:: :octicon:`bug;1.2em` Report a bug
:link: https://plane.opensdn.io

Problems in OpenSDN or in this documentation.

.. toctree::
:hidden:
:maxdepth: 2

Contributing guide <../contributing-to-opensdn/index>
Infrastructure & CI <../infrastructure/index>
68 changes: 68 additions & 0 deletions get-started/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
.. This work is licensed under the Creative Commons Attribution 4.0 International License.

.. _get-started:

Get started
===========

OpenSDN adds a virtual network layer on top of any IP fabric. A central
:term:`control node` computes routes and policies, and a :term:`vRouter` on
every compute host forwards traffic between workloads. You manage it through
your orchestrator (OpenStack or Kubernetes) or directly through the
:term:`config node` REST API.

.. seealso::

:doc:`/opensdn-feature-architecture-guide/understanding-opensdn` for a
full introduction, and :doc:`/opensdn-feature-architecture-guide/understanding-opensdn-components`
for how the components talk to each other.

Choose a starting point
-----------------------

.. grid:: 1 1 3 3
:gutter: 3

.. grid-item-card:: :octicon:`beaker;1.2em` Try it out
:link: tf-devstack
:link-type: ref

Bring up a small all-in-one environment with **tf-devstack** to
explore OpenSDN.

+++
Best for: evaluation, development

.. grid-item-card:: :octicon:`server;1.2em` Lab deployment
:link: /release/getting-started/index
:link-type: doc

Deploy a 3-node OpenStack + OpenSDN lab with the **Ansible
Deployer**, step by step.

+++
Best for: first multi-node setup

.. grid-item-card:: :octicon:`package;1.2em` Production install
:link: /install/index
:link-type: doc

Compare the supported installation methods and pick the one that
matches your platform.

+++
Best for: planning a real deployment

Before you begin
----------------

* Check the :doc:`/opensdn-installation-and-upgrade-guide/hardware-reqs-vnc`.
* Read the :doc:`release notes </release/index>` for the version you plan to
install.
* Unfamiliar with a term? See the :ref:`glossary`.

.. toctree::
:hidden:
:maxdepth: 1

Lab deployment with Ansible Deployer <../release/getting-started/index>
Loading