Skip to content

Commit 659f7d0

Browse files
committed
Fix download link
1 parent 6d7a3ce commit 659f7d0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ This will change in the future, but for now:
2525
- source schemas are found in the `/schemas` subfolder. Edit there.
2626
- `index_contents.py` will create all the API endpoints and copy the schemas themselves into `/public`, so they will be served by react
2727
- run `npm run bulid` to create the `/dist` folder from the source in `/src` (and `/public`).
28-
- Host the site on github pages from the `dist` folder?
29-
28+
- run `mv dist docs` since github pages wants to host from `/docs` only. (hack!)
29+
- Host the site on github pages from the `docs` folder
3030

31+
TODO:
32+
- [ ] re-automate the index_contents.py action (it's broken)
33+
- [ ] automate the above build steps
34+
- [ ] fix the breadcrumbs so they just update search params instead of triggering page refresh
3135

src/App.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const SchemaDashboard = (props) => {
5959
<b>Endpoint:</b> https://schema.databio.org/{`${props.namespace}/${props.schema}.yaml`}<br/>
6060
<b>Preview (this page):</b> https://schema.databio.org/?namespace={`${props.namespace}`}&schema={`${props.schema}`}<br/>
6161

62-
<button className="btn btn-primary my-4" href={`${props.namespace}/${props.schema}.yaml`}>Download schema</button>
62+
<button className="btn btn-primary my-4" href={`/${props.namespace}/${props.schema}.yaml`}>Download schema</button>
6363

6464
<h4>Preview</h4>
6565
<pre style={divStyle}><code>{schema}</code></pre>

0 commit comments

Comments
 (0)