Skip to content

Commit

Permalink
Merge pull request #2 from 2xB/main
Browse files Browse the repository at this point in the history
Documentation: Add source files for GitHub Pages
  • Loading branch information
Gon-na authored Oct 26, 2023
2 parents 802f17e + 64f9c04 commit 45c1ed6
Show file tree
Hide file tree
Showing 93 changed files with 26,604 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build GitHub Pages website

on:
push:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: pip install sphinx_rtd_theme

- name: Build target "build"
run: cd Documentation/gh-pages && make github

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'Documentation/gh-pages/docs'

# As documented on https://github.com/actions/deploy-pages
deploy:
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
27 changes: 27 additions & 0 deletions Documentation/gh-pages/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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
HTMLDIR = docs

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

github:
@make html
@rm -rf "$(HTMLDIR)"
@mv "$(BUILDDIR)/html" "$(HTMLDIR)"
@touch "$(HTMLDIR)/.nojekyll"

.PHONY: help github 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)
10 changes: 10 additions & 0 deletions Documentation/gh-pages/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Kassiopeia documentation
========================

This uses Sphinx. The provided Makefile rebuilds the GitHub HTML pages:

make github

The used Sphinx theme is 'Read the Docs'. It can be installed via:

pip install sphinx_rtd_theme
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12,192 changes: 12,192 additions & 0 deletions Documentation/gh-pages/source/_images/bindings_full.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 Documentation/gh-pages/source/_images/toric.png
20 changes: 20 additions & 0 deletions Documentation/gh-pages/source/authors.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.. _authors-label:

Authors
*******

Authors of Kassiopeia include individuals from the following institutions:

- Karlsruhe Institute of Technology
- Lawrence Berkeley National Laboratory
- Massachusetts Institute of Technology
- Max Planck Institute for Physics
- University of California, Santa Barbara
- University of Mainz
- University of Manitoba
- University of Muenster
- University of North Carolina, Chapel Hill
- University of Washington
- University of Wuppertal

Additional contributions were made by various GitHub users. Than you for your support!
52 changes: 52 additions & 0 deletions Documentation/gh-pages/source/bindings.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
.. _bindings-label:

Bindings Documentation
**********************

This section provides documentation for the **XML bindings**. Many Kasper
modules can parse XML files during intialization; the bindings classes define
the available XML elements, their attributes and their relation to C++ classes.

.. contents:: On this page
:local:
:depth: 2

Overview
========

The files below show the allowed *elements* and *attributes* that can be used
in Kasper XML files; according to the syntax:

.. code-block:: xml
<element attribute_1="value_1" attribute_2="value_2">
<child_element attribute_3="value_3" />
</element>
Elements can be nested according to what is shown here, and each element can
have a number of attributes. Note that in some cases, certain child elements
and attributes are required; in other cases, they are mutually exclusive. Note
that this information is not represented here in the documentation.

Additional documentation on the XML bindings is available on GitHub:
`Documentation/Bindings <https://github.com/KATRIN-Experiment/Kassiopeia/blob/main/Documentation/Bindings/>`_.

Bindings graph
==============

The graphs shows the relation between the available XML elements.

.. image:: _images/bindings_full.svg
:width: 1000px
:alt: XML bindings graph

List of bindings
================

The tables below show the child elements and attributes along with their type for each XML element.
Note that the column pairs *child element / child type* and *attribute / attribute type* are linked: each listed type
corresponds to the item on the left. The list of attributes is independent to the list of child elements. For many
elements the child elements and attributes cannot be freely combined (e.g. some are mutually exclusive), but this is
not reflected here.

.. include:: ./bindings_full.rst
8,039 changes: 8,039 additions & 0 deletions Documentation/gh-pages/source/bindings_full.rst

Large diffs are not rendered by default.

Loading

0 comments on commit 45c1ed6

Please sign in to comment.