Skip to content

Commit

Permalink
build pdfs from md files
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenSmith25 committed Nov 2, 2021
1 parent 7f243a7 commit d274a0f
Show file tree
Hide file tree
Showing 13 changed files with 92 additions and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitingore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.err
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
# handoverdocs


To build pdfs of the docs you can use pandoc. On osx install:

```
brew install pandoc```
```
Now install tex
```
brew install basictex
```
Install the mermaid folter
```
npm i -g mermaid-filter
```
As an example, run:
```
pandoc -F mermaid-filter conda_build.md -o conda_build.pdf -V papersize:a4 --highlight-style pygments
```

Once the dependencies are install you can run the build script build.sh

Else you can view the docs in vscode.
13 changes: 13 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -ex


pandoc -F mermaid-filter conda_build.md -o conda_build.pdf -V papersize:a4 --highlight-style pygments

pandoc -F mermaid-filter conda_envs.md -o conda_envs.pdf -V papersize:a4 --highlight-style pygments

pandoc -F mermaid-filter windows_debug.md -o windows_debug.pdf -V papersize:a4 --highlight-style pygments

pandoc -F mermaid-filter packaging.md -o packaging.pdf -V papersize:a4 --highlight-style pygments

pandoc -F mermaid-filter general_docs.md -o general_docs.pdf -V papersize:a4 --highlight-style pygments
4 changes: 3 additions & 1 deletion conda_build.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Conda build (nightly and release)
# Conda build (nightly and release)
==========================================

```mermaid
graph TD
A[Mantid dependencies] -->|Parse requirements| B(Conda recipes)
Expand Down
Binary file added conda_build.pdf
Binary file not shown.
35 changes: 35 additions & 0 deletions conda_envs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# From dependencies to conda environments
From our initial list of mantid dependencies, we can extract our conda depenendices and source approairate versions from conda forge. These dependnecies are consumed in three ways: (1) By our local environment files used to build mantid (2) By the conda-build meta.yaml file used to speicify our build, host and runtime requirements of our mantid package. And lastly, when creating an installer we create a construct.yamlf file, which defines our python dependencies.
```mermaid
graph TD
A[Mantid dependencies] -->|Parse requirements| B(Create conda environment files)
B -->|mantid-developer.yaml| D[Local conda environment]
B -->|meta.yaml| E[Conda build recipe]
D --> |used by| I[Local build]
D --> |used by| H[CI build]
I --> O[Local use]
I --> |install|P[local install]
E --> |creates| G[mantid-framework]
E --> |creates| J[mantid-qt]
J <--> |uses| G
J --> |used by| K
E --> |creates| K[mantid-workbench ]
G --> MM[conda packages]
J --> MM[conda packages]
K --> MM[conda packages]
LL[build scripts] --> E[conda-build]
P -->|CPack| BB[Standalone installer]
CC[conda constructor] --> BB
B -->|construct.yaml| CC
```
Binary file added conda_envs.pdf
Binary file not shown.
Binary file added general_docs.pdf
Binary file not shown.
Empty file added mermaid-filter.err
Empty file.
17 changes: 17 additions & 0 deletions mermaid-images/de986b3a341c707c28e0d09faa7ed52851618c95.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
graph TD
A[Mantid dependencies] -->|Parse requirements| B(Conda recipes)

B --> F[mantid-framework, mantidqt, mantid-workbench]

AA[Main branch] --> G
L --> H
BB[Release tag] --> H[conda-feedstock]
L --> G[mantid recipes]

F -->L[meta.yaml & build scripts]

G --> |uploads to|I[mantid channel]
H --> |uploads to|J[conda-forge channel]

I <--> |once per day|G
J <--> |once per release|H
Binary file added packaging.pdf
Binary file not shown.
Binary file added windows_debug.pdf
Binary file not shown.

0 comments on commit d274a0f

Please sign in to comment.