Skip to content

Commit 3ef0b23

Browse files
committed
checking if TOC crashes due to orphaned pages
1 parent e75f365 commit 3ef0b23

File tree

8 files changed

+162
-0
lines changed

8 files changed

+162
-0
lines changed

docs/explanations/decisions.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.. This Source Code Form is subject to the terms of the Mozilla Public
2+
.. License, v. 2.0. If a copy of the MPL was not distributed with this
3+
.. file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
5+
Architectural Decision Records
6+
==============================
7+
8+
We record major architectural decisions in Architecture Decision Records (ADRs),
9+
as `described by Michael Nygard
10+
<http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions>`_.
11+
Below is the list of our current ADRs.
12+
13+
.. toctree::
14+
:maxdepth: 1
15+
:glob:
16+
17+
decisions/*
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
1. Record architecture decisions
2+
================================
3+
4+
Date: 2022-02-18
5+
6+
Status
7+
------
8+
9+
Accepted
10+
11+
Context
12+
-------
13+
14+
We need to record the architectural decisions made on this project.
15+
16+
Decision
17+
--------
18+
19+
We will use Architecture Decision Records, as `described by Michael Nygard
20+
<http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions>`_.
21+
22+
Consequences
23+
------------
24+
25+
See Michael Nygard's article, linked above. To create new ADRs we will copy and
26+
paste from existing ones.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2. Adopt python3-pip-skeleton for project structure
2+
===================================================
3+
4+
Date: 2022-02-18
5+
6+
Status
7+
------
8+
9+
Accepted
10+
11+
Context
12+
-------
13+
14+
We should use the following `pip-skeleton <https://github.com/DiamondLightSource/python3-pip-skeleton>`_.
15+
The skeleton will ensure consistency in developer
16+
environments and package management.
17+
18+
Decision
19+
--------
20+
21+
We have switched to using the skeleton.
22+
23+
Consequences
24+
------------
25+
26+
This module will use a fixed set of tools as developed in python3-pip-skeleton
27+
and can pull from this skeleton to update the packaging to the latest techniques.
28+
29+
As such, the developer environment may have changed, the following could be
30+
different:
31+
32+
- linting
33+
- formatting
34+
- pip venv setup
35+
- CI/CD

docs/how-to/contribute.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. include:: ../../../.github/CONTRIBUTING.rst

docs/how-to/make-release.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Make a release
2+
==============
3+
4+
To make a new release, please follow this checklist:
5+
6+
- Choose a new PEP440 compliant release number (see https://peps.python.org/pep-0440/)
7+
- Go to the GitHub release_ page
8+
- Choose ``Draft New Release``
9+
- Click ``Choose Tag`` and supply the new tag you chose (click create new tag)
10+
- Click ``Generate release notes``, review and edit these notes
11+
- Choose a title and click ``Publish Release``
12+
13+
Note that tagging and pushing to the main branch has the same effect except that
14+
you will not get the option to edit the release notes.
15+
16+
.. _release: https://github.com/PandABlocks/PandABlocks.github.io/releases

docs/how-to/run-container.rst

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Run in a container
2+
==================
3+
4+
A PandA Development container is available from on `Github Container reistry <https://ghcr.io/pandablocks/pandablocks-dev-container>`_.
5+
6+
7+
8+
Starting the container
9+
----------------------
10+
11+
To pull the container from github container registry ::
12+
13+
$ docker pull ghcr.io/pandablocks/pandablocks-dev-container:latest
14+
15+
To get a released version, use a numbered release instead of ``latest``.
16+
17+
Create three directories:
18+
19+
- ``REPO_DIR``, containing all the PandA repositories
20+
21+
- ``VIVADO_DIR``, containing a Vivado installation
22+
23+
- ``BUILD_DIR``, an empty directory
24+
25+
The above directories will be mounted as volumes to the container as it is run with the following command:
26+
27+
.. code-block:: bash
28+
29+
docker run --rm -it -v REPO_DIR:/repos:Z -v BUILD_DIR:/build:Z -v VIVADO_DIR:/scratch/Xilinx ghcr.io/pandablocks/pandablocks-dev-container /bin/bash
30+
31+
The ``/repos``, ``/build``, and ``/scratch/Xilinx`` paths describe the container directories at which the mounts occur.
32+
33+
In each repo you will need to:
34+
35+
.. code-block:: bash
36+
37+
cp CONFIG.example CONFIG
38+
39+
.. note::
40+
41+
For the Vivado installation the container path will need to match your local system.
42+
i.e. if it is located in /FPGA/Xilinx you will use VIVADO_DIR:/FPGA/Xilinx
43+
and you will then need to edit CONFIG as appropriate.

docs/how-to/update-tools.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Update the tools
2+
================
3+
4+
This module is merged with the python3-pip-skeleton_. This is a generic
5+
Python project structure which provides a means to keep tools and
6+
techniques in sync between multiple Python projects. To update to the
7+
latest version of the skeleton, run::
8+
9+
$ git pull --rebase=false https://github.com/DiamondLightSource/python3-pip-skeleton
10+
11+
Any merge conflicts will indicate an area where something has changed that
12+
conflicts with the setup of the current module. Check the `closed pull requests
13+
<https://github.com/DiamondLightSource/python3-pip-skeleton/pulls?q=is%3Apr+is%3Aclosed>`_
14+
of the skeleton module for more details.
15+
16+
.. _python3-pip-skeleton: https://DiamondLightSource.github.io/python3-pip-skeleton

docs/reference/standards.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Standards
2+
=========
3+
4+
This document defines the code and documentation standards used in this
5+
repository.
6+
7+
Code Standards
8+
--------------

0 commit comments

Comments
 (0)