Skip to content

Commit

Permalink
Migrate to mkdocs (#851)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergio <sergio.garcia.de.la.cruz@cern.ch>
  • Loading branch information
singiamtel and singiamtel authored Jun 19, 2024
1 parent c3c43bc commit 2a473d2
Show file tree
Hide file tree
Showing 26 changed files with 77 additions and 605 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Documentation
on:
push:
branches:
- master
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: |
pip install mkdocs-material
cd docs
mkdocs gh-deploy --force # Always keep in sync with master branch
15 changes: 0 additions & 15 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,3 @@ jobs:

- name: Run linters
run: tox -e lint

documentation:
name: documentation
runs-on: ubuntu-latest
container:
image: jekyll/jekyll

steps:
- uses: actions/checkout@v3

- name: Test documentation
run: |
chmod -R a+rwX .
jekyll build -s docs -d _site --baseurl .
script/custom_htmlproofer.rb
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Documentation migrated to <http://alisw.github.io/alibuild/>
Read the documentation here: <http://alisw.github.io/alibuild/>
27 changes: 0 additions & 27 deletions docs/_config.yml

This file was deleted.

9 changes: 0 additions & 9 deletions docs/_includes/section_toc.html

This file was deleted.

57 changes: 0 additions & 57 deletions docs/_layouts/main.html

This file was deleted.

7 changes: 0 additions & 7 deletions docs/_layouts/redirect.html

This file was deleted.

14 changes: 0 additions & 14 deletions docs/css/bootstrap-theme.min.css

This file was deleted.

14 changes: 0 additions & 14 deletions docs/css/bootstrap.min.css

This file was deleted.

11 changes: 0 additions & 11 deletions docs/css/pure-min.css

This file was deleted.

File renamed without changes
28 changes: 15 additions & 13 deletions docs/index.markdown → docs/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
title: ALIBUILD
subtile: About this tool
layout: main
---
Expand Down Expand Up @@ -28,44 +27,47 @@ Then, build ALICE's software with:
aliBuild build O2Physics

For a more verbose documentation of what is happening have a look at
the [quickstart guide](quick.html). See the [user guide](user.html)
the [quickstart guide](quick.md). See the [user guide](user.md)
for more command line options or have a look at the [troubleshooting
pages](troubleshooting.html) for hints on how to debug build errors.
Have a look at the [reference guide](reference.html) if you want to
pages](troubleshooting.md) for hints on how to debug build errors.
Have a look at the [reference guide](reference.md) if you want to
package your own software.

<div class="pure-g">
<div class="pure-u-1-3"><h3>Simple build recipes</h3>
<div style="display:grid;
grid-template-columns: repeat(3,1fr); /* 3 columns */
grid-template-rows: repeat(2,1fr); /* 2 rows */
grid-gap:50px 30px;

">
<div><h2>Simple build recipes</h2>
Build recipes are simple bash scripts with a YAML header. Whenever
a dependency or a package changes only what is affected by the
change is rebuilt.
<br/><a href="reference.html">Read more</a>
</div>
<div class="pure-u-1-3"><h3>Reuses system tools</h3>
<div><h2>Reuses system tools</h2>
If desired, aliBuild will do its best to reuse what is available
on the system, if compatible to what is found in the recipe.
<br/><a href="user.html#controlling-which-system-packages-are-picked-up">Read more</a>
</div>
<div class="pure-u-1-3"><h3>Docker support</h3>
<div><h2>Docker support</h2>
aliBuild allows builds to happen inside a docker container, so
that you can develop on Mac and build on your production Linux
platform.
<br/><a href="user.html#running-in-docker">Read more</a>
</div>
</div>
<div class="pure-g">
<div class="pure-u-1-3"><h3>Binary packages</h3>
<div><h2>Binary packages</h2>
aliBuild provides the ability to reuse binary packages which were
previously centrally built, when they match the one that would be
built locally.
<br/><a href="user.html#using-precompiled-packages">Read more</a>
</div>
<div class="pure-u-1-3"><h3>Developer mode</h3>
<div><h2>Developer mode</h2>
Besides building and packaging your dependencies, aliBuild
provides you the ability to develop those via a simple git clone.
<br/><a href="user.html#developing-packages-locally">Read more</a>
</div>
<div class="pure-u-1-3"><h3>Integrates with modules</h3>
<div><h2>Integrates with modules</h2>
Easily setup your work environment using `alienv`, which is based on
standard <a href="http://modules.sourceforge.net">modulefiles</a>.
<br/><a href="quick.html#loading-the-package-environment">Read more</a>
Expand Down
1 change: 0 additions & 1 deletion docs/o2-tutorial.markdown → docs/docs/o2-tutorial.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
title: ALIBUILD
subtitle: O2 build tutorial
dest_url: https://alice-doc.github.io/alice-analysis-tutorial/building/
layout: redirect
Expand Down
6 changes: 2 additions & 4 deletions docs/quick.markdown → docs/docs/quick.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
---
title: ALIBUILD
subtitle: Quick Start
layout: main
---

aliBuild is a tool to simplify building and installing ALICE / ALFA
software. This is a quickstart Guide which will show you how to build
and use a package, for extended documentation please have a look at the
[user guide](user.html).
[user guide](user.md).

## Setting up

Expand Down Expand Up @@ -71,7 +70,6 @@ For example, on Centos7:
sw/slc7_x86-64/AliRoot/v6-16-01-1

## Using the built package
{: #loading-the-package-environment}

Environment for packages built using aliBuild is managed by [Environment
Modules](http://modules.sourceforge.net) and a wrapper script called alienv.
Expand All @@ -88,4 +86,4 @@ to list the available packages, and:
alienv enter VO_ALICE@PackageA::VersionA[,VO_ALICE@PackageB::VersionB...]

to enter a shell with the appropriate environment set. To learn more about alienv you
can also look at the [user guide](user.html#using-the-packages-you-have-built).
can also look at the [user guide](user.md#using-the-packages-you-have-built).
1 change: 0 additions & 1 deletion docs/reference.markdown → docs/docs/reference.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
title: ALIBUILD
subtitle: Recipe reference manual
layout: main
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
title: ALIBUILD
subtitle: Troubleshooting
layout: main
---
Expand Down Expand Up @@ -223,7 +222,7 @@ or as a matter of fact any packages you have two options:
and add the options there.

Finally, for certain common options, e.g. debug flags, we provide a
precooked configuration using so called [defaults](user.html#defaults).
precooked configuration using so called [defaults](user.md#defaults).
Simply add `--defaults debug` to your aliBuild flags and it will add
debug flags to all your packages.

Expand Down
1 change: 0 additions & 1 deletion docs/tutorial.markdown → docs/docs/tutorial.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
title: ALIBUILD
subtitle: Basic tutorial
dest_url: https://alice-doc.github.io/alice-analysis-tutorial/building/
layout: redirect
Expand Down
5 changes: 2 additions & 3 deletions docs/user.markdown → docs/docs/user.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
title: ALIBUILD
subtitle: User command line reference manual
layout: main
---

## SYNOPSIS

For a quick start introduction, please look [here](./quick.html).
For a quick start introduction, please look [here](quick.md).

```
aliBuild build [-h] [--defaults DEFAULT]
Expand Down Expand Up @@ -243,7 +242,7 @@ validated for datataking and the choice will not change until the end of
RUN2 of LHC. In order to change that and use, for example, a more recent
version of ROOT you can use the `--default root6` option which will
enable ROOT6 based builds. For a more complete description of how defaults
works please look at [the reference manual](reference.html#defaults).
works please look at [the reference manual](reference.md#defaults).

## Disabling packages

Expand Down
1 change: 0 additions & 1 deletion docs/js/highlight.pack.js

This file was deleted.

2 changes: 0 additions & 2 deletions docs/main.css

This file was deleted.

26 changes: 26 additions & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
site_name: "aliBuild: ALICE software builder"
repo_name: View source code
repo_url: https://github.com/alisw/alibuild

theme:
name: material

use_directory_urls: false

nav:
- Home: index.md
- Quickstart: quick.md
- User manual: user.md
- Reference: reference.md
- ALICE/O2 tutorial: "https://alice-doc.github.io/alice-analysis-tutorial/building/"

markdown_extensions:
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
- toc:
permalink: "#"
6 changes: 0 additions & 6 deletions docs/o2-dataflow-tutorial.markdown

This file was deleted.

Loading

0 comments on commit 2a473d2

Please sign in to comment.