-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See changelog for high level, user-facing changes. - docker python install changes. pin watchdog version, turn off unneeded caching. - docker entrypoint changes. run cite process immediately, ensure no simultaneous runs. - first time setup fixes. don't parse config.yaml as yaml, instead customize with string replacement to preserve key order and comments. - add title and link fallbacks to citation component - fix start/end markers for blog post excerpts, and remove special characters from hidden search attribute - change member page from col layout to float - add multi-line option to regex_scan liquid plugin (to support start/end marker bug above) - add new regex_strip liquid plugin to strip all special characters from string - card, code, portrait, post excerpt css fixes - fix testbed image links - (re)include user pr template - fix versioning workflow to correctly parse and split changelog - add show-title and show-subtitle site config options - include site subtitle in description meta tag
- Loading branch information
1 parent
78fad78
commit 7435920
Showing
33 changed files
with
192 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This website is based on the Lab Website Template. | ||
See its documentation for working with this site: | ||
|
||
https://greene-lab.gitbook.io/lab-website-template-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ jobs: | |
github.event_name == 'pull_request' | ||
runs-on: ubuntu-latest | ||
steps: | ||
# for debugging | ||
- name: Print contexts | ||
uses: crazy-max/ghaction-dump-context@v1 | ||
|
||
|
@@ -54,10 +55,10 @@ jobs: | |
); | ||
const changelog = readFileSync("pr/CHANGELOG.md") | ||
.toString() | ||
.split(/^##?#?#?/m) | ||
.split(/^## /m) | ||
.map((section) => { | ||
const [heading, ...body] = section.split("\n"); | ||
return { heading, body: body.join("\n") }; | ||
return [heading.trim(), body.join("\n").trim()]; | ||
}); | ||
// check version | ||
|
@@ -71,8 +72,8 @@ jobs: | |
// check changelog | ||
const newSection = changelog.find( | ||
({ heading, body }) => | ||
heading.includes(newVersion) && heading.includes(newDate) && body.trim() | ||
([heading, body]) => | ||
heading.includes(newVersion) && heading.includes(newDate) && body | ||
); | ||
if (!newSection) throw Error("Changelog not updated or not valid"); | ||
|
@@ -83,6 +84,7 @@ jobs: | |
github.event_name == 'push' | ||
runs-on: ubuntu-latest | ||
steps: | ||
# for debugging | ||
- name: Print contexts | ||
uses: crazy-max/ghaction-dump-context@v1 | ||
|
||
|
@@ -106,24 +108,30 @@ jobs: | |
); | ||
const changelog = readFileSync("CHANGELOG.md") | ||
.toString() | ||
.split(/^##?#?#?/m) | ||
.split(/^## /m) | ||
.map((section) => { | ||
const [heading, ...body] = section.split("\n"); | ||
return { heading, body: body.join("\n") }; | ||
return [heading.trim(), body.join("\n").trim()]; | ||
}); | ||
// find changelog body for version | ||
const body = | ||
const [, body = ""] = | ||
changelog.find( | ||
({ heading }) => heading.includes(version) && heading.includes(date) | ||
)?.body || ""; | ||
([heading]) => heading.includes(version) && heading.includes(date) | ||
) || []; | ||
return { version, body }; | ||
- name: Create tag and GitHub release | ||
- name: Create tag | ||
id: tag | ||
uses: mathieudutour/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
custom_tag: ${{ fromJson(steps.version.outputs.result).version }} | ||
|
||
- name: Create GitHub release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
commit: ${{ github.ref }} | ||
tag: v${{ fromJson(steps.version.outputs.result).version }} | ||
name: v${{ fromJson(steps.version.outputs.result).version }} | ||
tag: ${{ fromJson(steps.version.outputs.result).version }} | ||
name: ${{ fromJson(steps.version.outputs.result).version }} | ||
body: ${{ fromJson(steps.version.outputs.result).body }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.