Skip to content

Commit ccac2a6

Browse files
committed
fix: enable Jekyll to render markdown documentation
1 parent 3629c26 commit ccac2a6

3 files changed

Lines changed: 35 additions & 11 deletions

File tree

.github/workflows/docs.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ concurrency:
1919
cancel-in-progress: false
2020

2121
jobs:
22-
deploy:
23-
environment:
24-
name: github-pages
25-
url: ${{ steps.deployment.outputs.page_url }}
22+
build:
2623
runs-on: ubuntu-latest
2724
steps:
2825
- name: Checkout
@@ -31,11 +28,22 @@ jobs:
3128
- name: Setup Pages
3229
uses: actions/configure-pages@v4
3330

31+
- name: Build with Jekyll
32+
uses: actions/jekyll-build-pages@v1
33+
with:
34+
source: ./docs
35+
destination: ./_site
36+
3437
- name: Upload artifact
3538
uses: actions/upload-pages-artifact@v3
36-
with:
37-
path: 'docs'
3839

40+
deploy:
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
runs-on: ubuntu-latest
45+
needs: build
46+
steps:
3947
- name: Deploy to GitHub Pages
4048
id: deployment
4149
uses: actions/deploy-pages@v4

docs/_config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
title: PorousMediaLab Documentation
2+
description: Python toolbox for batch and 1D reactive transport modeling in porous media
3+
remote_theme: pages-themes/cayman@v0.2.0
4+
plugins:
5+
- jekyll-remote-theme
6+
7+
markdown: kramdown
8+
kramdown:
9+
input: GFM
10+
syntax_highlighter: rouge
11+
12+
defaults:
13+
- scope:
14+
path: ""
15+
values:
16+
layout: default

docs/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ <h1>PorousMediaLab Documentation</h1>
3535

3636
<h2>Quick Links</h2>
3737
<table class="nav-table">
38-
<tr><td><a href="quickstart.md">Quickstart</a></td><td>Get started in 5 minutes</td></tr>
39-
<tr><td><a href="batch-guide.md">Batch Guide</a></td><td>Complete guide to 0D batch reactor simulations</td></tr>
40-
<tr><td><a href="column-guide.md">Column Guide</a></td><td>Complete guide to 1D reactive transport</td></tr>
38+
<tr><td><a href="quickstart.html">Quickstart</a></td><td>Get started in 5 minutes</td></tr>
39+
<tr><td><a href="batch-guide.html">Batch Guide</a></td><td>Complete guide to 0D batch reactor simulations</td></tr>
40+
<tr><td><a href="column-guide.html">Column Guide</a></td><td>Complete guide to 1D reactive transport</td></tr>
4141
</table>
4242

4343
<h2>Tutorials</h2>
4444
<p>Step-by-step tutorials with real-world examples:</p>
4545
<ul>
46-
<li><a href="tutorials/batch-roden.md">Organic Matter Degradation</a> - Batch reactor modeling following Roden 2008</li>
47-
<li><a href="tutorials/sediment-column.md">Sediment Diagenesis</a> - 1D column transport with complex reactions</li>
46+
<li><a href="tutorials/batch-roden.html">Organic Matter Degradation</a> - Batch reactor modeling following Roden 2008</li>
47+
<li><a href="tutorials/sediment-column.html">Sediment Diagenesis</a> - 1D column transport with complex reactions</li>
4848
</ul>
4949

5050
<h2>Features</h2>

0 commit comments

Comments
 (0)