Skip to content

Added Sphinx Documentation #5

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

Merged
merged 19 commits into from
Apr 7, 2025
Merged
Show file tree
Hide file tree
Changes from 4 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
57 changes: 57 additions & 0 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Sphinx build

on:
# Push/Pull for main branch.
push:
branches: [main]
pull_request:
branches: [main]

# Run workflow manually from actions tab.
workflow_dispatch:

jobs:
build:
# Specify an OS for the runner
runs-on: ubuntu-latest

#Define steps
steps:

# Firstly, checkout repo
- name: Checkout repository
uses: actions/checkout@v4
# Set up Python env
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.11
# Install dependencies
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install poetry
poetry install

- name: Build documentation
run: |
mkdir gh-pages
touch gh-pages/.nojekyll
pushd docs/source/
poetry run sphinx-build -b html . _build
popd
cp -r docs/source/_build/* gh-pages/

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: gh-pages
# Deploys to the gh-pages branch if the commit was made to main, the
# gh-pages then takes over serving the html
- name: Deploy documentation
if: ${{ github.event_name == 'push' }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: gh-pages
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
jsons/
settings.json
local/
localcache/
localcache/
*pyc
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Binary file added build/doctrees/core/cli.doctree
Binary file not shown.
Binary file added build/doctrees/core/doc.doctree
Binary file not shown.
Binary file added build/doctrees/environment.pickle
Binary file not shown.
Binary file added build/doctrees/index-sphinx-test.doctree
Binary file not shown.
Binary file added build/doctrees/index.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 71cb8f0d0809ce17a42e72d886f9cb20
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file added build/html/_images/ceda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/flight-finder-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions build/html/_sources/core/cli.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
======================
Command Line Interface
======================
46 changes: 46 additions & 0 deletions build/html/_sources/core/doc.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
=============
Documentation
=============

Flight Update
=============
.. automodule:: flight_update
:members:
:undoc-members:
:show-inheritance:


Elastic Search Flight Client
============================

.. automodule:: flight_client
:members:
:undoc-members:
:show-inheritance:


Flight Client Wrapper
=====================

.. automodule:: simple_client
:members:
:undoc-members:
:show-inheritance:


Write Flights
=============

.. automodule:: write_flights
:members:
:undoc-members:
:show-inheritance:


Get Moles
=========
.. automodule:: moles
:members:
:undoc-members:
:show-inheritance:

49 changes: 49 additions & 0 deletions build/html/_sources/index-sphinx-test.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.. Flight-pipeline documentation master file, created by
sphinx-quickstart on Wed Mar 5 15:23:55 2025.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

Flight-pipeline documentation
=============================

Add your content using ``reStructuredText`` syntax. See the
`reStructuredText <https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html>`_
documentation for details.


.. toctree::
:maxdepth: 2
:caption: Contents:


.. image:: _images/Flight-finder-preview.png
:align: center
:alt: Alternative text for the image
:width: 50%


.. automodule:: flight_update
:members:
:undoc-members:
:show-inheritance:

.. automodule:: flight_client
:members:
:undoc-members:
:show-inheritance:

.. automodule:: simple_client
:members:
:undoc-members:
:show-inheritance:

.. automodule:: write_flights
:members:
:undoc-members:
:show-inheritance:

.. automodule:: moles
:members:
:undoc-members:
:show-inheritance:

Loading
Loading