Skip to content
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
7 changes: 6 additions & 1 deletion .readthedocs.yml → .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
version: 2

# Build documentation in the docs/ directory with Sphinx
# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.10"

sphinx:
configuration: docs/source/conf.py

Expand All @@ -10,7 +16,6 @@ formats:

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: docs/requirements.txt
- requirements: requirements.txt
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sphinx_book_theme >=0.0.30
sphinx_rtd_theme
30 changes: 30 additions & 0 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
@import "theme.css";

.wy-side-nav-search {
background: #BEBEBE;
}
.wy-nav-side {
background: #F5F5F5;
}

.wy-menu-vertical p.caption{
color: #BEBEBE;
}
.wy-menu-vertical a{
color: black;
}

.wy-menu-vertical a:hover {
background-color: #BEBEBE;
color: black;
}

.wy-table-responsive table td,
.wy-table-responsive table th {
white-space: normal !important; /* Allow text to wrap */
word-wrap: break-word !important;
}

.wy-nav-content {
max-width: 1000px
}
6 changes: 0 additions & 6 deletions docs/source/_static/custom.css

This file was deleted.

5 changes: 2 additions & 3 deletions docs/source/algorithms/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ a defining feature of the simulation framework.

TopSim separates allocation policies into two categories:

* Reservation-based allocation, such as SLURM or typical batch-processing models
* Free allocation, which is the model that popular heuristics such as HEFT
are built upon.
* Reservation-based allocation, such as SLURM or typical batch-processing models
* Free allocation, which is the model that popular heuristics such as HEFT are built upon.
2 changes: 1 addition & 1 deletion docs/source/algorithms/scheduling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Scheduling

.. currentmodule:: topsim.algorithms

Use the :py:class:`~scheduling.Algorithm` ABC as a starting point.
Use the :py:class:`~scheduling.Scheduling` ABC as a starting point.
23 changes: 12 additions & 11 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# -- Project information -----------------------------------------------------

project = 'TopSim'
copyright = '2019-2021, RW Bunney'
copyright = '2019-2025, RW Bunney'
author = 'RW Bunney'

master_doc = 'index'
Expand All @@ -31,7 +31,7 @@
# ones.
extensions = [
'sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx.ext.autosummary',
'sphinx.ext.viewcode'
'sphinx.ext.viewcode', 'sphinx_rtd_theme'
]

# Add any paths that contain templates here, relative to this sdirectory.
Expand All @@ -50,18 +50,19 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'pydata_sphinx_theme'

# html_theme = 'pydata_sphinx_theme'
html_theme = 'sphinx_rtd_theme'
# html_theme_options = {"full_logo":"true"}
html_theme_options = {
# "show_toc_level": True,
# "collapse_navigation": False,
# "navigation_depth": 2
}
# html_theme_options = {
# # "show_toc_level": True,
# # "collapse_navigation": False,
# # "navigation_depth": 2
# }
html_logo = 'new_logo.svg'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

html_title = 'TopSim'
html_css_files = ["css/custom.css"]
html_style = "css/custom.css"
html_theme_options = {"logo_only": True}
2 changes: 1 addition & 1 deletion docs/source/configuration/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ What needs configuring?

The following actors require configuration, which is parsed by the :py:class:`~config.Config` module when a simulation is initiated.

We use the configuration that supported the :ref:`model-overview <model-overview>` discussion in :ref:`getting-started <getting-started>`.
We use the configuration that supported the :ref:`model_overview` discussion in :ref:`getting_started`.

* Instrument (which also includes the observation plan)
* Cluster
Expand Down
2 changes: 1 addition & 1 deletion docs/source/getting_started/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _getting-started:
.. _getting_started:

-------------------------
Getting Started
Expand Down
2 changes: 2 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ operations, such as the Square Kilometre Array (SKA).

Overview
---------

TopSim follows a discrete event simulation model, using the
`SimPy <https://simpy.readthedocs.io/en/latest/>`_ module as
the foundation for the simulations.
Expand All @@ -33,6 +34,7 @@ sections.

Installation
-------------

.. toctree::
:maxdepth: 3

Expand Down
33 changes: 0 additions & 33 deletions docs/source/reference/api/core/topsim.core.buffer.Buffer.rst

This file was deleted.

27 changes: 0 additions & 27 deletions docs/source/reference/api/core/topsim.core.buffer.ColdBuffer.rst

This file was deleted.

26 changes: 0 additions & 26 deletions docs/source/reference/api/core/topsim.core.buffer.HotBuffer.rst

This file was deleted.

48 changes: 0 additions & 48 deletions docs/source/reference/api/core/topsim.core.cluster.Cluster.rst

This file was deleted.

25 changes: 0 additions & 25 deletions docs/source/reference/api/core/topsim.core.config.Config.rst

This file was deleted.

23 changes: 0 additions & 23 deletions docs/source/reference/api/core/topsim.core.delay.DelayModel.rst

This file was deleted.

24 changes: 0 additions & 24 deletions docs/source/reference/api/core/topsim.core.monitor.Monitor.rst

This file was deleted.

Loading