-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from lsst/tickets/DM-41310
DM-41310: Update the schema browser to use LTD
- Loading branch information
Showing
19 changed files
with
185 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Build and Deploy the Schema Browser | ||
|
||
"on": | ||
merge_group: {} | ||
pull_request: {} | ||
push: | ||
branches-ignore: | ||
# These should always correspond to pull requests, so ignore them for | ||
# the push trigger and let them be triggered by the pull_request | ||
# trigger, avoiding running the workflow twice. This is a minor | ||
# optimization so there's no need to ensure this is comprehensive. | ||
- "dependabot/**" | ||
- "gh-readonly-queue/**" | ||
- "renovate/**" | ||
- "tickets/**" | ||
- "u/**" | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
|
||
docs: | ||
|
||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # full history for setuptools_scm | ||
|
||
- name: Install Ruby and other prerequisites | ||
run: sudo apt-get install -y ruby-full build-essential zlib1g-dev | ||
|
||
- name: Install required Ruby gems | ||
run: sudo gem install bundler jekyll jekyll-theme-cayman jekyll-last-modified-at | ||
|
||
- name: Build the schema browser site | ||
run: jekyll build | ||
|
||
# Only attempt documentation uploads for tagged releases and pull | ||
# requests from ticket branches in the same repository. This avoids | ||
# version clutter in the docs and failures when a PR doesn't have access | ||
# to secrets. | ||
- name: Upload to LSST the Docs | ||
uses: lsst-sqre/ltd-upload@v1 | ||
with: | ||
project: "sdm-schemas" | ||
dir: "_site" | ||
username: ${{ secrets.LTD_USERNAME }} | ||
password: ${{ secrets.LTD_PASSWORD }} | ||
if: > | ||
github.event_name != 'merge_group' | ||
&& (github.event_name != 'pull_request' | ||
|| startsWith(github.head_ref, 'tickets/')) |
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,31 @@ | ||
# Makefile for building the SDM Schemas browser site | ||
.PHONY: help init run build clean | ||
|
||
# Print help | ||
help: | ||
@echo "Available targets for sdm_schemas:" | ||
@echo " init - Install the required Ruby gems" | ||
@echo " build - Build the schema browser site" | ||
@echo " run - Serve the schema browser site" | ||
@echo " clean - Clean the schema browser site" | ||
|
||
# Install required Ruby gems (Ruby must be installed externally.) | ||
init: | ||
@command -v gem >/dev/null 2>&1 || { \ | ||
echo >&2 "gem command not found. Please install Ruby using your package manager."; \ | ||
echo >&2 "For more information, visit: https://jekyllrb.com/docs/installation"; \ | ||
exit 1; \ | ||
} | ||
gem install -q --silent --no-verbose jekyll bundler jekyll-theme-cayman jekyll-last-modified-at | ||
|
||
# Run the web server and watch for changes | ||
run: | ||
jekyll serve --watch | ||
|
||
# Build the site | ||
build: | ||
jekyll build | ||
|
||
# Cleanup local config and remove the generated site | ||
clean: | ||
jekyll clean && rm -rf _site &> /dev/null |
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 |
---|---|---|
@@ -1,11 +1,35 @@ | ||
theme: jekyll-theme-cayman | ||
plugins: | ||
- jekyll-last-modified-at | ||
last-modified-at: | ||
date-format: '%B %d, %Y' | ||
|
||
data_dir: ./yml | ||
layouts_dir: ./browser/_layouts | ||
layouts_dir: _layouts | ||
source: ./browser | ||
baseurl: "" | ||
|
||
repository_url: "https://github.com/lsst/sdm_schemas" | ||
repository_name: "SDM Schemas" | ||
owner_url: "https://rubinobservatory.org/" | ||
owner_name: "Rubin Observatory" | ||
|
||
exclude: | ||
- Gemfile | ||
- /datalink | ||
- /tap-schema | ||
- /ups | ||
- /yml | ||
- Makefile | ||
- README.md | ||
- requirements.txt | ||
- yml/archive | ||
|
||
readme_index: | ||
remove_originals: true | ||
|
||
safe: false | ||
|
||
sass: | ||
sass_dir: _sass | ||
# style: compressed |
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,7 @@ | ||
<hr/> | ||
<!--<span class="site-footer-owner">--> | ||
<p> | ||
<a href="{{ site.repository_url }}">{{ site.repository_name }}</a> is maintained by | ||
<a href="{{ site.owner_url }}">{{ site.owner_name }}</a>. | ||
</p> | ||
|
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,7 @@ | ||
<meta charset="UTF-8"> | ||
{% seo %} | ||
<link rel="shortcut icon" href="https://www.lsst.org/sites/default/files/Rubin%20favicon%2032px.png" type="image/png"> | ||
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="theme-color" content="#157878"> | ||
<link rel="stylesheet" href="./assets/css/main.css"> |
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,3 @@ | ||
<a href="https://rubinobservatory.org/" target="_blank"> | ||
<img id="logo" src="./assets/images/rubinobs.png" alt="Rubin Observatory Logo"/> | ||
</a> |
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,13 @@ | ||
<ul> | ||
{%- assign schemas = site.pages | where: 'dir', '/' | sort: 'sort-index' %} | ||
{%- for schema in schemas %} | ||
{%- if schema.name != 'index.md' %} | ||
<li> | ||
<a href=".{{ schema.url }}">{{ schema.title }}</a> | ||
{%- if include.include_description %} | ||
{{ schema.content }} | ||
{%- endif %} | ||
</li> | ||
{%- endif %} | ||
{%- endfor %} | ||
</ul> |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
--- | ||
@import "style2"; |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
layout: schema | ||
title: Data Preview 0.1 Schema | ||
title: Data Preview 0.1 | ||
schema: dp01_dc2 | ||
sort-index: 10 | ||
--- | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
layout: schema | ||
title: Data Preview 0.2 Schema | ||
title: Data Preview 0.2 | ||
schema: dp02_dc2 | ||
sort-index: 9 | ||
--- | ||
|
Binary file not shown.
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
--- | ||
layout: schema | ||
title: HSC Schema | ||
title: HyperSuprimeCam | ||
schema: hsc | ||
sort-index: 20 | ||
--- | ||
The HSC Schema describes the outputs of the latest data release production pipelines for HyperSuprimeCam. This schema is used by [ci_hsc](https://github.com/lsst/ci_hsc), which | ||
verifies the schema of the pipeline output files. | ||
The HyperSuprimeCam (HSC) Schema describes the outputs of the latest data release production pipelines for | ||
HyperSuprimeCam. | ||
This schema is used by [ci_hsc](https://github.com/lsst/ci_hsc), which verifies the schema of the pipeline | ||
output files. |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
layout: schema | ||
title: LSSTCam-imSim Schema | ||
title: LSSTCam ImSim | ||
schema: imsim | ||
sort-index: 30 | ||
--- | ||
|
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 @@ | ||
../yml/ |