Skip to content

Commit e2026e5

Browse files
authored
Merge pull request #43 from arcaneframework/doc-audit-2026-07-03-0948
Doc audit 2026 07 03 0948
2 parents d7d1f84 + b8d9d56 commit e2026e5

35 files changed

Lines changed: 546 additions & 435 deletions

README.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,72 @@ In short:
139139
- `Main/` (ShArc.exe entry point).
140140
- `test/` contains the reference cases and CTest scenarios (TwoPhaseFlowSimulation, CAWF, ExaDiBench, ThermoChemicalConvection, large-scale SPE10).
141141

142+
## IV/ Documentation
143+
144+
ShArc ships with a Hugo + Doxygen documentation site under the `docs/` directory.
145+
146+
There are two main usage modes:
147+
148+
### IV.1/ Local documentation (developer mode)
149+
150+
To browse the documentation locally while developing:
151+
152+
1. Install Hugo (extended version), for example on Ubuntu:
153+
154+
```bash
155+
sudo apt install hugo
156+
```
157+
158+
2. From the **root of the repository** (not from `docs/`), start the Hugo server:
159+
160+
```bash
161+
cd /path/to/sharc
162+
hugo server --config docs/hugo.yaml -D
163+
```
164+
165+
Then open the URL printed by Hugo (typically `http://localhost:1313/` or a similar port).
166+
167+
Internally:
168+
169+
- Hugo uses `docs/hugo.yaml` as its configuration file.
170+
- Content is under `docs/content/` (sections `src/`, `test/`, `api/`, `architecture/`).
171+
- Layouts and theme are under `docs/layouts/` and `docs/themes/hugo-book/`.
172+
- The documentation pages for the main modules/tests **include** the Markdown files
173+
from the project (`src/README.md`, `test/.../README.md`, `ARCHITECTURE.md`) via a
174+
custom shortcode, which is why Hugo must be run from the repository root.
175+
176+
### IV.2/ Deployed documentation (GitHub Pages via CI)
177+
178+
The repository also includes a GitHub Actions workflow that automatically builds and
179+
publishes the documentation to the `docs/` folder on the `main` branch, suitable for
180+
GitHub Pages:
181+
182+
- Workflow file: `.github/workflows/docs.yml`
183+
- On each push to `main`, it runs:
184+
185+
```bash
186+
hugo --config docs/hugo.yaml
187+
```
188+
189+
which generates the static site into `docs/public/`.
190+
191+
- Then it copies the generated files into `docs/` (adds `.nojekyll`) and commits the
192+
changes back to `main`.
193+
194+
To use GitHub Pages with this workflow:
195+
196+
1. In the GitHub repository settings, under **Pages**, choose:
197+
- Branch: `main`
198+
- Folder: `/docs`
199+
200+
2. Ensure the workflow is enabled (default for Actions).
201+
202+
3. After a push on `main`, GitHub Actions will regenerate the documentation website,
203+
and GitHub Pages will serve it from the `/docs` directory.
204+
205+
This setup keeps documentation generation automated while still allowing local
206+
preview (`hugho server`) and manual edits of the Markdown files in `src/` and `test/`.
207+
142208

143209
### II.2/ Installation guide
144210

docs/hugo.yaml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
1-
baseURL: http://localhost:1313/
1+
baseURL: https://arcaneframework.github.io/sharc/
22
title: "sharc"
33
theme: hugo-book
44
disableKinds: ["taxonomy", "term"]
55
defaultContentLanguage: "fr"
66

7-
# IMPORTANT: on traite le dépôt racine comme projet Hugo, et la doc
8-
# vit dans le sous-répertoire `docs/`. Cela permet à Hugo de lire
9-
# les fichiers Markdown dans `src/` et `test/` via `readFile`.
7+
# IMPORTANT
8+
# ----------
9+
# On considère la RACINE du dépôt comme projet Hugo, et `docs/` comme
10+
# sous-répertoire :
11+
# - contenu : docs/content
12+
# - layouts : docs/layouts
13+
# - thème : docs/themes
14+
# - static : docs/static
15+
# - output : docs/public
16+
#
17+
# => Il faut lancer Hugo depuis la racine du dépôt, par exemple :
18+
# hugo server --config docs/hugo.yaml -D
19+
# ou hugo --config docs/hugo.yaml
1020

1121
contentDir: docs/content
12-
staticDir: ["docs/static"]
1322
layoutDir: docs/layouts
1423
themesDir: docs/themes
24+
staticDir: ["docs/static"]
1525
publishDir: docs/public
1626

27+
canonifyURLs: true
28+
1729
params:
1830
description: "Documentation du projet"
1931
BookSearch: true

docs/public/404.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<meta name="description" content="">
1212
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
1313
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#2e3440">
14-
<meta name="color-scheme" content="light dark"><meta property="og:url" content="http://localhost:1313/404.html">
14+
<meta name="color-scheme" content="light dark"><meta property="og:url" content="https://arcaneframework.github.io/sharc/404.html">
1515
<meta property="og:site_name" content="sharc">
1616
<meta property="og:title" content="404 Page not found">
1717
<meta property="og:description" content="Documentation du projet">
@@ -23,13 +23,13 @@
2323
<meta itemprop="description" content="Documentation du projet">
2424

2525
<title>404 Page not found • sharc</title>
26-
<link rel="icon" href="/favicon.png" >
27-
<link rel="manifest" href="/manifest.json">
28-
<link rel="canonical" href="http://localhost:1313/404.html">
29-
<link rel="stylesheet" href="/book.min.98c83e4c8e1c8661368bcb29bbaf4dcc9d31b8164f76aae322d82d86a9750c65.css" integrity="sha256-mMg&#43;TI4chmE2i8spu69NzJ0xuBZPdqrjItgthql1DGU=" crossorigin="anonymous">
26+
<link rel="icon" href="https://arcaneframework.github.io/sharc/favicon.png" >
27+
<link rel="manifest" href="https://arcaneframework.github.io/sharc/manifest.json">
28+
<link rel="canonical" href="https://arcaneframework.github.io/sharc/404.html">
29+
<link rel="stylesheet" href="https://arcaneframework.github.io/sharc/book.min.98c83e4c8e1c8661368bcb29bbaf4dcc9d31b8164f76aae322d82d86a9750c65.css" integrity="sha256-mMg&#43;TI4chmE2i8spu69NzJ0xuBZPdqrjItgthql1DGU=" crossorigin="anonymous">
3030

3131

32-
<script defer type="module" src="/fr.search.min.82a75c690351c998fc20be88fb7271f17457708ec2cd694bf7fe49fd04920d56.js" integrity="sha256-gqdcaQNRyZj8IL6I&#43;3Jx8XRXcI7CzWlL9/5J/QSSDVY=" crossorigin="anonymous"></script>
32+
<script defer type="module" src="https://arcaneframework.github.io/sharc/fr.search.min.7c6ed2e0c014d5c79d3c8c54b307cb49561af63f3e18d0930c74e11645699b49.js" integrity="sha256-fG7S4MAU1cedPIxUswfLSVYa9j8&#43;GNCTDHThFkVpm0k=" crossorigin="anonymous"></script>
3333

3434
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css">
3535
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script>
@@ -96,7 +96,7 @@ <h1>
9696
<span>Found</span>
9797
</h1>
9898
<h3>
99-
<a href="/">sharc</a>
99+
<a href="https://arcaneframework.github.io/sharc/">sharc</a>
100100
</h3>
101101
</main>
102102

docs/public/api/index.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
33
<channel>
44
<title>API on sharc</title>
5-
<link>http://localhost:1313/api/</link>
5+
<link>https://arcaneframework.github.io/sharc/api/</link>
66
<description>Recent content in API on sharc</description>
77
<generator>Hugo</generator>
88
<language>fr</language>
99

1010

1111

1212

13-
<atom:link href="http://localhost:1313/api/index.xml" rel="self" type="application/rss+xml" />
13+
<atom:link href="https://arcaneframework.github.io/sharc/api/index.xml" rel="self" type="application/rss+xml" />
1414
</channel>
1515
</rss>

docs/public/architecture/index.html

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
">
1717
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
1818
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#2e3440">
19-
<meta name="color-scheme" content="light dark"><meta property="og:url" content="http://localhost:1313/architecture/">
19+
<meta name="color-scheme" content="light dark"><meta property="og:url" content="https://arcaneframework.github.io/sharc/architecture/">
2020
<meta property="og:site_name" content="sharc">
2121
<meta property="og:title" content="Architecture">
2222
<meta property="og:description" content="🧠 Cette page a été générée avec l’aide de l’IA à partir de l’analyse du code source et de recherches web.
@@ -37,14 +37,14 @@
3737
<meta itemprop="wordCount" content="921">
3838

3939
<title>Architecture • sharc</title>
40-
<link rel="icon" href="/favicon.png" >
41-
<link rel="manifest" href="/manifest.json">
42-
<link rel="canonical" href="http://localhost:1313/architecture/">
43-
<link rel="stylesheet" href="/book.min.98c83e4c8e1c8661368bcb29bbaf4dcc9d31b8164f76aae322d82d86a9750c65.css" integrity="sha256-mMg&#43;TI4chmE2i8spu69NzJ0xuBZPdqrjItgthql1DGU=" crossorigin="anonymous">
40+
<link rel="icon" href="https://arcaneframework.github.io/sharc/favicon.png" >
41+
<link rel="manifest" href="https://arcaneframework.github.io/sharc/manifest.json">
42+
<link rel="canonical" href="https://arcaneframework.github.io/sharc/architecture/">
43+
<link rel="stylesheet" href="https://arcaneframework.github.io/sharc/book.min.98c83e4c8e1c8661368bcb29bbaf4dcc9d31b8164f76aae322d82d86a9750c65.css" integrity="sha256-mMg&#43;TI4chmE2i8spu69NzJ0xuBZPdqrjItgthql1DGU=" crossorigin="anonymous">
4444

4545

46-
<script defer type="module" src="/fr.search.min.82a75c690351c998fc20be88fb7271f17457708ec2cd694bf7fe49fd04920d56.js" integrity="sha256-gqdcaQNRyZj8IL6I&#43;3Jx8XRXcI7CzWlL9/5J/QSSDVY=" crossorigin="anonymous"></script>
47-
<link rel="alternate" type="application/rss+xml" href="http://localhost:1313/architecture/index.xml" title="Architecture" />
46+
<script defer type="module" src="https://arcaneframework.github.io/sharc/fr.search.min.7c6ed2e0c014d5c79d3c8c54b307cb49561af63f3e18d0930c74e11645699b49.js" integrity="sha256-fG7S4MAU1cedPIxUswfLSVYa9j8&#43;GNCTDHThFkVpm0k=" crossorigin="anonymous"></script>
47+
<link rel="alternate" type="application/rss+xml" href="https://arcaneframework.github.io/sharc/architecture/index.xml" title="Architecture" />
4848

4949
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css">
5050
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script>
@@ -70,7 +70,7 @@
7070

7171
<nav>
7272
<h2 class="book-brand">
73-
<a class="flex align-center" href="/"><span>sharc</span>
73+
<a class="flex align-center" href="https://arcaneframework.github.io/sharc/"><span>sharc</span>
7474
</a>
7575
</h2>
7676

@@ -104,7 +104,7 @@ <h2 class="book-brand">
104104

105105

106106

107-
<a href="/docs/" class="">
107+
<a href="https://arcaneframework.github.io/sharc/docs/" class="">
108108
Documentation</a>
109109

110110

@@ -123,7 +123,7 @@ <h2 class="book-brand">
123123

124124

125125

126-
<a href="/architecture/" class="active">
126+
<a href="https://arcaneframework.github.io/sharc/architecture/" class="active">
127127
Architecture</a>
128128

129129

@@ -142,7 +142,7 @@ <h2 class="book-brand">
142142

143143

144144

145-
<a href="/src/" class="">
145+
<a href="https://arcaneframework.github.io/sharc/src/" class="">
146146
src</a>
147147

148148

@@ -156,7 +156,7 @@ <h2 class="book-brand">
156156

157157

158158

159-
<a href="/src/cawf/" class="">
159+
<a href="https://arcaneframework.github.io/sharc/src/cawf/" class="">
160160
CAWF</a>
161161

162162

@@ -175,7 +175,7 @@ <h2 class="book-brand">
175175

176176

177177

178-
<a href="/src/exadibench/" class="">
178+
<a href="https://arcaneframework.github.io/sharc/src/exadibench/" class="">
179179
ExaDiBench</a>
180180

181181

@@ -194,7 +194,7 @@ <h2 class="book-brand">
194194

195195

196196

197-
<a href="/src/main/" class="">
197+
<a href="https://arcaneframework.github.io/sharc/src/main/" class="">
198198
Main</a>
199199

200200

@@ -213,7 +213,7 @@ <h2 class="book-brand">
213213

214214

215215

216-
<a href="/src/sharc/" class="">
216+
<a href="https://arcaneframework.github.io/sharc/src/sharc/" class="">
217217
ShArc</a>
218218

219219

@@ -232,7 +232,7 @@ <h2 class="book-brand">
232232

233233

234234

235-
<a href="/src/twophaseflowsimulation/" class="">
235+
<a href="https://arcaneframework.github.io/sharc/src/twophaseflowsimulation/" class="">
236236
TwoPhaseFlowSimulation</a>
237237

238238

@@ -256,7 +256,7 @@ <h2 class="book-brand">
256256

257257

258258

259-
<a href="/test/" class="">
259+
<a href="https://arcaneframework.github.io/sharc/test/" class="">
260260
test</a>
261261

262262

@@ -270,7 +270,7 @@ <h2 class="book-brand">
270270

271271

272272

273-
<a href="/test/cawf/" class="">
273+
<a href="https://arcaneframework.github.io/sharc/test/cawf/" class="">
274274
Tests CAWF</a>
275275

276276

@@ -289,7 +289,7 @@ <h2 class="book-brand">
289289

290290

291291

292-
<a href="/test/exadibench/" class="">
292+
<a href="https://arcaneframework.github.io/sharc/test/exadibench/" class="">
293293
Tests ExaDiBench</a>
294294

295295

@@ -308,7 +308,7 @@ <h2 class="book-brand">
308308

309309

310310

311-
<a href="/test/thermochemicalconvection/" class="">
311+
<a href="https://arcaneframework.github.io/sharc/test/thermochemicalconvection/" class="">
312312
Tests ThermoChemicalConvection</a>
313313

314314

@@ -327,7 +327,7 @@ <h2 class="book-brand">
327327

328328

329329

330-
<a href="/test/twophaseflowsimulation/" class="">
330+
<a href="https://arcaneframework.github.io/sharc/test/twophaseflowsimulation/" class="">
331331
Tests TwoPhaseFlowSimulation</a>
332332

333333

@@ -351,7 +351,7 @@ <h2 class="book-brand">
351351

352352

353353

354-
<a href="/api/" class="">
354+
<a href="https://arcaneframework.github.io/sharc/api/" class="">
355355
API</a>
356356

357357

@@ -395,14 +395,14 @@ <h2 class="book-brand">
395395

396396
<div class="flex align-center justify-between">
397397
<label for="menu-control">
398-
<img src="/icons/menu.svg" class="book-icon" alt="Menu" />
398+
<img src="https://arcaneframework.github.io/sharc/icons/menu.svg" class="book-icon" alt="Menu" />
399399
</label>
400400

401401
<h3>Architecture</h3>
402402

403403
<label for="toc-control">
404404

405-
<img src="/icons/toc.svg" class="book-icon" alt="Table of Contents" />
405+
<img src="https://arcaneframework.github.io/sharc/icons/toc.svg" class="book-icon" alt="Table of Contents" />
406406

407407
</label>
408408
</div>
@@ -706,17 +706,17 @@ <h2 id="5-architecture-de-la-documentation">5. Architecture de la documentation<
706706
<div class="flex flex-wrap justify-between">
707707
<span>
708708

709-
<a href="/docs/" class="flex align-center">
710-
<img src="/icons/backward.svg" class="book-icon" alt="Backward" />
709+
<a href="https://arcaneframework.github.io/sharc/docs/" class="flex align-center">
710+
<img src="https://arcaneframework.github.io/sharc/icons/backward.svg" class="book-icon" alt="Backward" />
711711
<span>Documentation</span>
712712
</a>
713713

714714
</span>
715715
<span>
716716

717-
<a href="/src/" class="flex align-center">
717+
<a href="https://arcaneframework.github.io/sharc/src/" class="flex align-center">
718718
<span>src</span>
719-
<img src="/icons/forward.svg" class="book-icon" alt="Forward" />
719+
<img src="https://arcaneframework.github.io/sharc/icons/forward.svg" class="book-icon" alt="Forward" />
720720
</a>
721721

722722
</span>

docs/public/architecture/index.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
33
<channel>
44
<title>Architecture on sharc</title>
5-
<link>http://localhost:1313/architecture/</link>
5+
<link>https://arcaneframework.github.io/sharc/architecture/</link>
66
<description>Recent content in Architecture on sharc</description>
77
<generator>Hugo</generator>
88
<language>fr</language>
99

1010

1111

1212

13-
<atom:link href="http://localhost:1313/architecture/index.xml" rel="self" type="application/rss+xml" />
13+
<atom:link href="https://arcaneframework.github.io/sharc/architecture/index.xml" rel="self" type="application/rss+xml" />
1414
</channel>
1515
</rss>

0 commit comments

Comments
 (0)