Skip to content

Commit c2c8223

Browse files
authored
Merge pull request #70 from ClojureCivitas/external-requirements
minor fixes and remove draft flag
2 parents d8a145e + 9a3f52a commit c2c8223

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

site/scicloj/clay/skip_if_unchanged_example.qmd

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ category: clay
44
tags: [clay, workflow]
55
format:
66
html: {title: Some Clay notebooks should only be run locally}
7-
date: '2025-07-25'
7+
date: '2025-09-09'
88
type: post
99
author:
1010
name: Daniel Slutsky
@@ -14,7 +14,6 @@ author:
1414
- {name: Scicloj, url: 'https://scicloj.github.io/'}
1515
links:
1616
- {icon: github, href: 'https://github.com/daslu'}
17-
draft: true
1817
image: skip-if-unchanged.jpg
1918

2019
---
@@ -77,8 +76,8 @@ render the notebook locally using Clay in Quarto `.qmd` format, and include
7776
that file in your Pull Request.
7877

7978
The `.qmd` file is all that Civitas needs to include your notebook in the
80-
website. As long as the `.qmd` file is included in the PR, and is not older than
81-
your source `.clj` file, Civitas will just rely on it and not even try
79+
website. As long as the `.qmd` file is already there,
80+
Civitas will just rely on it and not even try
8281
to generate it in GitHub Actions.
8382

8483
To do that, you will need to make the file locally with a Quarto target.
@@ -104,10 +103,10 @@ clojure -M:clay -A:markdown scicloj/clay/skip_if_unchanged_example.clj
104103
:::
105104

106105

107-
Now, need to `git add` the generated `qmd` file.
106+
Now `git add` the generated `qmd` file.
108107

109108
```sh
110-
git add -f site/scicloj/clay/skip_if_unchanged_example.clj
109+
git add -f site/scicloj/clay/skip_if_unchanged_example.qmd
111110
```
112111

113112
Also we need to add some metadata to this namespace.

src/scicloj/clay/skip_if_unchanged_example.clj

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
:description "How to create notebooks with secrets, large files, and slow processes."
55
:image "skip-if-unchanged.jpg"
66
:type :post
7-
:date "2025-07-25"
7+
:date "2025-09-09"
88
:category :clay
9-
:tags [:clay :workflow]
10-
:draft true}}}
9+
:tags [:clay :workflow]}}}
1110
(ns scicloj.clay.skip-if-unchanged-example)
1211

1312
;; Usually, when we wish to create Clojure Civitas posts, we enjoy the fact
@@ -27,8 +26,7 @@
2726
;; that file in your Pull Request.
2827

2928
;; The `.qmd` file is all that Civitas needs to include your notebook in the
30-
;; website. As long as the `.qmd` file is included in the PR, and is not older than
31-
;; your source `.clj` file, Civitas will just rely on it and not even try
29+
;; website. As long as the `.qmd` file is already there, Civitas will just rely on it and not even try
3230
;; to generate it in GitHub Actions.
3331

3432
;; To do that, you will need to make the file locally with a Quarto target.
@@ -47,10 +45,10 @@
4745
(clay/make! {:source-path "scicloj/clay/skip_if_unchanged_example.clj"
4846
:aliases [:markdown]}))
4947

50-
;; Now, need to `git add` the generated `qmd` file.
48+
;; Now `git add` the generated `qmd` file.
5149

5250
;; ```sh
53-
;; git add -f site/scicloj/clay/skip_if_unchanged_example.clj
51+
;; git add -f site/scicloj/clay/skip_if_unchanged_example.qmd
5452
;; ```
5553

5654
;; Also we need to add some metadata to this namespace.

0 commit comments

Comments
 (0)