Skip to content

Commit e62ad08

Browse files
committed
Updated content control for local and prod environments
1 parent cb89624 commit e62ad08

File tree

5 files changed

+27
-1
lines changed

5 files changed

+27
-1
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737

3838
- name: Render Quarto Project
3939
uses: quarto-dev/quarto-actions/render@v2
40+
env:
41+
QUARTO_PROFILE: production
4042

4143
- name: Upload static files as artifact
4244
uses: actions/upload-pages-artifact@v3

_quarto-local.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
project:
2+
type: website
3+
title: "(Local) Learn GRASS"
4+
render:
5+
- "tests/*.qmd"

_quarto-production.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
project:
2+
render:
3+
- "*.qmd"
4+
- "!content/tests/"
5+
execute:
6+
freeze: false

_quarto.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
project:
22
type: website
33
output-dir: docs
4+
render:
5+
- "*.qmd"
46
website:
57
site-url: "https://grass-tutorials.osgeo.org"
68
favicon: images/favicon.ico
@@ -64,3 +66,5 @@ format:
6466
link-external-newwindow: true
6567

6668
brand: _brand.yml
69+
profile:
70+
default: local

index.qmd

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
---
22
title: "Learn GRASS"
33
listing:
4+
- id: tests
5+
contents:
6+
- content/tests/styling.qmd
7+
type: grid
48
- id: get-started
59
contents: content/tutorials/get_started
610
type: grid
@@ -10,7 +14,6 @@ listing:
1014
contents:
1115
- content/tutorials
1216
- content/tutorials/external/ecodiv.yml
13-
- content/tests/*.qmd
1417
sort: "date desc"
1518
type: grid
1619
categories: true
@@ -31,3 +34,9 @@ title-block-banner: false
3134
## All Tutorials
3235
:::{#all}
3336
:::
37+
38+
::: {.content-visible when-profile="local"}
39+
## Tests
40+
:::{#tests}
41+
:::
42+
:::

0 commit comments

Comments
 (0)