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

Restructure Readthedocs documentation #3428

Merged
merged 2 commits into from
May 23, 2023
Merged
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
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_build/
1 change: 1 addition & 0 deletions docs/Agent/faq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# FAQ
1 change: 1 addition & 0 deletions docs/Agent/installation/Ansible_based_installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Ansible based installation
12 changes: 12 additions & 0 deletions docs/Agent/installation/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Installation
=========================

Choose any one of the following approaches to setup `Pbench Agent`

.. toctree::
:maxdepth: 2

pbench-containers
rpm_based_installation
Ansible_based_installation

2 changes: 2 additions & 0 deletions docs/Agent/installation/pbench-containers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Pbench containers

1 change: 1 addition & 0 deletions docs/Agent/installation/rpm_based_installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# RPM based installation
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ User Guide
##############

.. contents::

What is Pbench?
****************

Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions docs/Agent/user-guide/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
User Guide
==========

.. toctree::
:maxdepth: 2

getting_started
UserGuide
man_page
1 change: 1 addition & 0 deletions docs/Agent/user-guide/man_page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Man Page
1 change: 1 addition & 0 deletions docs/Dashboard/faq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# FAQ
1 change: 1 addition & 0 deletions docs/Dashboard/user_guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Pbench Dashboard User Guide
File renamed without changes.
14 changes: 14 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Documentation

PBench website [gh-pages](https://distributed-system-analysis.github.io/pbench)
PBench readthedocs [self hosted](https://distributed-system-analysis.github.io/pbench/docs) and [readthedoc instance](https://pbench.readthedocs.io)

This dir has all the pbench documentation(api, user guide, commands, gh-pages, etc).
Pbench website is hosted on gh-pages and readthedocs pages(`/docs`) are also hosted along with it.

## Readthedocs setup

`$ pip3 install -r requirement.txt`
`$ make clean`
`$ make html`
> **Note:** Above command will build your readthedocs page in `_build/html` dir.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions docs/API/metadata.md → docs/Server/API/metadata.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Metadata

## Dataset metadata

A dataset is referenced by a formal resource ID, and also has a resource name
Expand Down
1 change: 1 addition & 0 deletions docs/Server/faq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# FAQ
9 changes: 8 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
extensions = [
"sphinx.ext.autosectionlabel",
"sphinx_design",
"myst_parser",
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -51,7 +52,13 @@
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = ".rst"
source_suffix = {
".rst": "restructuredtext",
".txt": "restructuredtext",
".md": "markdown",
}

myst_enable_extensions = ["colon_fence"]

# The master toctree document.
master_doc = "index"
Expand Down
34 changes: 28 additions & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
contain the root `toctree` directive.

Pbench
########
======

A Benchmarking and Performance Analysis Framework
Pbench is a Benchmarking and Performance Analysis Framework.

.. dropdown:: Pbench Agent
:animate: fade-in-slide-down
Expand All @@ -27,13 +27,35 @@ A Benchmarking and Performance Analysis Framework
by the Agent and indexed by the Server.


**Table of Contents**
.. toctree::
:maxdepth: 4
:hidden:
:caption: Pbench Agent

Agent/installation/index
Agent/user-guide/index
Agent/faq

* :doc:`guides/UserGuide`
.. toctree::
:maxdepth: 4
:hidden:
:caption: Pbench Server

Server/API/README
Server/FAQ/faq

.. toctree::
:caption: Pbench-agent
:maxdepth: 4
:hidden:
:caption: Pbench Dashboard

Dashboard/user_guide
Dashboard/faq

guides/UserGuide
.. toctree::
:maxdepth: 4
:hidden:
:caption: Pbench Developer Guidelines

Developers/contributing

1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
sphinx-design
sphinx-rtd-theme
myst-parser