Skip to content

Commit 64d3bc7

Browse files
Handling of manual refresh for publications list (#56)
* made the link on the news page to the actual publication item * cosmetics + force doi in getcomputo-pub.fsx, fix badge alignment in publications.ejs * updated publications metadata to include DOI * Enhance publication display: update DOI handling, improve layout, and add source links * Refactor BibTeX handling and update mock papers - Renamed `getAbstract` to `getBibTeX` for clarity and updated its implementation to return the BibTeX entry. - Introduced a new function `getAbstract` to extract the abstract from a BibTeX entry. - Added `getBibTeXFromDict` to retrieve BibTeX from a dictionary containing repository objects. - Updated `getAbstractFromDict` to utilize the new BibTeX handling functions. - Enhanced the `publications.ejs` template to generate BibTeX entries directly from the item data. * Add lightbox filter to author guidelines for enhanced image display * Enhance GitHub Actions workflow with forced run option and update publication handling * Remove unnecessary callout formatting from README.md [skip ci] * Comment out QUARTO_PROJECT_RENDER_ALL exit check in getcomputo-pub.fsx * Update environment variable for GitHub token to API_GITHUB_TOKEN because GITHUB_* is forbidden for repo secrets [skip ci] * Add API_GITHUB_TOKEN environment variable for publication refresh step * Update publications from getcomputo-pub.fsx [skip ci] * remove lightbox extension as it is included in quarto 1.7 --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 9593386 commit 64d3bc7

File tree

6 files changed

+1385
-61
lines changed

6 files changed

+1385
-61
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,46 @@ on:
88
branches:
99
- master
1010
workflow_dispatch:
11+
inputs:
12+
force:
13+
description: 'Set to "true" to mark this run as forced when manually triggered'
14+
required: false
15+
default: 'false'
1116

1217
jobs:
1318
build:
19+
# Skip this job on push events when the head commit message contains [skip ci]
20+
if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]') }}
21+
permissions:
22+
contents: write
1423
runs-on: ubuntu-latest
1524
steps:
1625
- name: Checkout code
1726
uses: actions/checkout@v3
27+
with:
28+
fetch-depth: 0
29+
persist-credentials: true
1830
- name: Setup Quarto
1931
uses: quarto-dev/quarto-actions/setup@v2
32+
- name: refresh publications and commit changes
33+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.inputs.force == 'true' }}
34+
env:
35+
API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
36+
run: |
37+
dotnet fsi getcomputo-pub.fsx
38+
git config user.name "github-actions[bot]"
39+
git config user.email "github-actions[bot]@users.noreply.github.com"
40+
# Stage the generated files (ignore errors if files missing)
41+
git add site/published.yml site/pipeline.yml site/mock-papers.yml || true
42+
# Only commit if there are staged changes
43+
if git diff --staged --quiet; then
44+
echo "No publication changes to commit"
45+
else
46+
git commit -m "Update publications from getcomputo-pub.fsx [skip ci]"
47+
# push to the branch that triggered the workflow
48+
git push origin HEAD:${{ github.ref_name }}
49+
fi
50+
2051
- name: Build site
2152
uses: quarto-dev/quarto-actions/render@v2
2253
- name: Upload artifact

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ This repository stores the source of Computorg.
99

1010
Our website has been built with [Quarto](https://quarto.org), an open-source scientific and technical publishing system. The first thing you need to compile the website is therefore to install Quarto, which can be done by downloading the corresponing installer here: <https://quarto.org/docs/get-started/>.
1111

12-
::: {.callout-note}
1312
## Positron
1413

1514
If you are using the new [Positron IDE](https://positron.posit.co), quarto is already bundled with it. You can simply type `which quarto` within the built-in terminal in Positron and add the returned path to your `PATH`.
16-
:::
1715

1816
### Microsoft DotNet SDK
1917

_quarto.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
project:
22
type: website
33
output-dir: _site
4-
# pre-render: dotnet fsi getcomputo-pub.fsx
54
website:
65
title: COMPUTO
76
site-url: https://computo.sfds.asso.fr/

getcomputo-pub.fsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ open DrBiber
1515
open System.Threading.Tasks
1616

1717
// exit if QUARTO_PROJECT_RENDER_ALL is set in the environment
18-
if System.Environment.GetEnvironmentVariable("QUARTO_PROJECT_RENDER_ALL") = null then
19-
printfn "QUARTO_PROJECT_RENDER_ALL is not set, exiting."
20-
exit 0
18+
// if System.Environment.GetEnvironmentVariable("QUARTO_PROJECT_RENDER_ALL") = null then
19+
// printfn "QUARTO_PROJECT_RENDER_ALL is not set, exiting."
20+
// exit 0
2121
// Load environment variables from .env file
2222
Env.Load(".env-secret")
2323

2424
let client =
2525
let client = new GitHubClient(new ProductHeaderValue("computo"))
2626
// Using environment variable for token is a good security practice
27-
match System.Environment.GetEnvironmentVariable("GITHUB_TOKEN") with
27+
match System.Environment.GetEnvironmentVariable("API_GITHUB_TOKEN") with
2828
| null
2929
| "" -> client // No authentication
3030
| token ->

site/mock-papers.yml

Lines changed: 141 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,69 @@
1-
- abstract': >-
1+
- abstract'@: >-
2+
We present a new technique called “t-SNE” that visualizes
3+
high-dimensional data by giving each datapoint a location in a two
4+
or three-dimensional map. The technique is a variation of Stochastic
5+
Neighbor Embedding {[}@hinton:stochastic{]} that is much easier to
6+
optimize, and produces significantly better visualizations by
7+
reducing the tendency to crowd points together in the center of the
8+
map. t-SNE is better than existing techniques at creating a single
9+
map that reveals structure at many different scales. This is
10+
particularly important for high-dimensional data that lie on several
11+
different, but related, low-dimensional manifolds, such as images of
12+
objects from multiple classes seen from multiple viewpoints. For
13+
visualizing the structure of very large data sets, we show how t-SNE
14+
can use random walks on neighborhood graphs to allow the implicit
15+
structure of all the data to influence the way in which a subset of
16+
the data is displayed. We illustrate the performance of t-SNE on a
17+
wide variety of data sets and compare it with many other
18+
non-parametric visualization techniques, including Sammon mapping,
19+
Isomap, and Locally Linear Embedding. The visualization produced by
20+
t-SNE are significantly better than those produced by other
21+
techniques on almost all of the data sets.
22+
authors@: Laurens van der Maaten and Geoffrey Hinton
23+
bibtex@: >+
24+
@article{van_der_maaten2008,
25+
author = {van der Maaten, Laurens and Hinton, Geoffrey},
26+
publisher = {French Statistical Society},
27+
title = {Visualizing {Data} Using {t-SNE} (Mock Contributon)},
28+
journal = {Computo},
29+
date = {2008-08-11},
30+
doi = {10.57750/xxxxxx},
31+
issn = {2824-7795},
32+
langid = {en},
33+
abstract = {We present a new technique called “t-SNE” that visualizes
34+
high-dimensional data by giving each datapoint a location in a two
35+
or three-dimensional map. The technique is a variation of Stochastic
36+
Neighbor Embedding {[}@hinton:stochastic{]} that is much easier to
37+
optimize, and produces significantly better visualizations by
38+
reducing the tendency to crowd points together in the center of the
39+
map. t-SNE is better than existing techniques at creating a single
40+
map that reveals structure at many different scales. This is
41+
particularly important for high-dimensional data that lie on several
42+
different, but related, low-dimensional manifolds, such as images of
43+
objects from multiple classes seen from multiple viewpoints. For
44+
visualizing the structure of very large data sets, we show how t-SNE
45+
can use random walks on neighborhood graphs to allow the implicit
46+
structure of all the data to influence the way in which a subset of
47+
the data is displayed. We illustrate the performance of t-SNE on a
48+
wide variety of data sets and compare it with many other
49+
non-parametric visualization techniques, including Sammon mapping,
50+
Isomap, and Locally Linear Embedding. The visualization produced by
51+
t-SNE are significantly better than those produced by other
52+
techniques on almost all of the data sets.}
53+
}
54+
55+
date@: 2008-08-11
56+
description@: >
57+
This page is a reworking of the original t-SNE article using the Computo template. It aims to help authors submitting to the journal by using some advanced formatting features. We warmly thank the authors of t-SNE and the editor of JMLR for allowing us to use their work to illustrate the Computo spirit.
58+
doi@: 10.57750/xxxxxx
59+
draft@: false
60+
journal@: Computo
61+
pdf@: ''
62+
repo@: published-paper-tsne
63+
title@: Visualizing Data using t-SNE (mock contributon)
64+
url@: ''
65+
year@: 2008
66+
abstract': >-
267
We present a new technique called “t-SNE” that visualizes
368
high-dimensional data by giving each datapoint a location in a two
469
or three-dimensional map. The technique is a variation of Stochastic
@@ -23,12 +88,11 @@
2388
bibtex: >+
2489
@article{van_der_maaten2008,
2590
author = {van der Maaten, Laurens and Hinton, Geoffrey},
26-
publisher = {Société Française de Statistique},
27-
title = {Visualizing {Data} Using {t-SNE:} A Practical Computo Example
28-
(Mock)},
91+
publisher = {French Statistical Society},
92+
title = {Visualizing {Data} Using {t-SNE} (Mock Contributon)},
2993
journal = {Computo},
3094
date = {2008-08-11},
31-
url = {https://computo.sfds.asso.fr/published-paper-tsne},
95+
doi = {10.57750/xxxxxx},
3296
issn = {2824-7795},
3397
langid = {en},
3498
abstract = {We present a new technique called “t-SNE” that visualizes
@@ -56,15 +120,80 @@
56120
date: 2008-08-11
57121
description: >
58122
This page is a reworking of the original t-SNE article using the Computo template. It aims to help authors submitting to the journal by using some advanced formatting features. We warmly thank the authors of t-SNE and the editor of JMLR for allowing us to use their work to illustrate the Computo spirit.
59-
doi: ''
123+
doi: 10.57750/xxxxxx
60124
draft: false
61125
journal: Computo
62126
pdf: ''
63127
repo: published-paper-tsne
64128
title: Visualizing Data using t-SNE (mock contributon)
65-
url: https://computo-journal.org/published-paper-tsne
129+
url: ''
66130
year: 2008
67-
- abstract': >-
131+
- abstract'@: >-
132+
We present a new technique called “t-SNE” that visualizes
133+
high-dimensional data by giving each datapoint a location in a two
134+
or three-dimensional map. The technique is a variation of Stochastic
135+
Neighbor Embeddi{[}@hinton:stochastic{]} that is much easier to
136+
optimize, and produces significantly better visualizations by
137+
reducing the tendency to crowd points together in the center of the
138+
map. t-SNE is better than existing techniques at creating a single
139+
map that reveals structure at many different scales. This is
140+
particularly important for high-dimensional data that lie on several
141+
different, but related, low-dimensional manifolds, such as images of
142+
objects from multiple classes seen from multiple viewpoints. For
143+
visualizing the structure of very large data sets, we show how t-SNE
144+
can use random walks on neighborhood graphs to allow the implicit
145+
structure of all the data to influence the way in which a subset of
146+
the data is displayed. We illustrate the performance of t-SNE on a
147+
wide variety of data sets and compare it with many other
148+
non-parametric visualization techniques, including Sammon mapping,
149+
Isomap, and Locally Linear Embedding. The visualization produced by
150+
t-SNE are significantly better than those produced by other
151+
techniques on almost all of the data sets.
152+
authors@: Laurens van der Maaten and Geoffrey Hinton
153+
bibtex@: >+
154+
@article{van_der_maaten2008,
155+
author = {van der Maaten, Laurens and Hinton, Geoffrey},
156+
publisher = {French Statistical Society},
157+
title = {Visualizing {Data} Using {t-SNE} (Mock Contributon)},
158+
journal = {Computo},
159+
date = {2008-08-11},
160+
doi = {10.57750/xxxxxx},
161+
issn = {2824-7795},
162+
langid = {en},
163+
abstract = {We present a new technique called “t-SNE” that visualizes
164+
high-dimensional data by giving each datapoint a location in a two
165+
or three-dimensional map. The technique is a variation of Stochastic
166+
Neighbor Embeddi{[}@hinton:stochastic{]} that is much easier to
167+
optimize, and produces significantly better visualizations by
168+
reducing the tendency to crowd points together in the center of the
169+
map. t-SNE is better than existing techniques at creating a single
170+
map that reveals structure at many different scales. This is
171+
particularly important for high-dimensional data that lie on several
172+
different, but related, low-dimensional manifolds, such as images of
173+
objects from multiple classes seen from multiple viewpoints. For
174+
visualizing the structure of very large data sets, we show how t-SNE
175+
can use random walks on neighborhood graphs to allow the implicit
176+
structure of all the data to influence the way in which a subset of
177+
the data is displayed. We illustrate the performance of t-SNE on a
178+
wide variety of data sets and compare it with many other
179+
non-parametric visualization techniques, including Sammon mapping,
180+
Isomap, and Locally Linear Embedding. The visualization produced by
181+
t-SNE are significantly better than those produced by other
182+
techniques on almost all of the data sets.}
183+
}
184+
185+
date@: 2008-08-11
186+
description@: >
187+
This page is a reworking of the original t-SNE article using the Computo template. It aims to help authors submitting to the journal by using some advanced formatting features. We warmly thank the authors of t-SNE and the editor of JMLR for allowing us to use their work to illustrate the Computo spirit.
188+
doi@: 10.57750/xxxxxx
189+
draft@: false
190+
journal@: Computo
191+
pdf@: ''
192+
repo@: published-paper-tsne-R
193+
title@: Visualizing Data using t-SNE (mock contributon)
194+
url@: ''
195+
year@: 2008
196+
abstract': >-
68197
We present a new technique called “t-SNE” that visualizes
69198
high-dimensional data by giving each datapoint a location in a two
70199
or three-dimensional map. The technique is a variation of Stochastic
@@ -90,11 +219,10 @@
90219
@article{van_der_maaten2008,
91220
author = {van der Maaten, Laurens and Hinton, Geoffrey},
92221
publisher = {French Statistical Society},
93-
title = {Visualizing {Data} Using {t-SNE:} A Practical {Computo}
94-
Example (Mock)},
222+
title = {Visualizing {Data} Using {t-SNE} (Mock Contributon)},
95223
journal = {Computo},
96224
date = {2008-08-11},
97-
url = {https://computo-journal.org/published-paper-tsne-R},
225+
doi = {10.57750/xxxxxx},
98226
issn = {2824-7795},
99227
langid = {en},
100228
abstract = {We present a new technique called “t-SNE” that visualizes
@@ -122,11 +250,11 @@
122250
date: 2008-08-11
123251
description: >
124252
This page is a reworking of the original t-SNE article using the Computo template. It aims to help authors submitting to the journal by using some advanced formatting features. We warmly thank the authors of t-SNE and the editor of JMLR for allowing us to use their work to illustrate the Computo spirit.
125-
doi: ''
253+
doi: 10.57750/xxxxxx
126254
draft: false
127255
journal: Computo
128256
pdf: ''
129257
repo: published-paper-tsne-R
130258
title: Visualizing Data using t-SNE (mock contributon)
131-
url: https://computo-journal.org/published-paper-tsne-R
259+
url: ''
132260
year: 2008

0 commit comments

Comments
 (0)