Skip to content

Commit

Permalink
ci(docs): Update the docs to use the template
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey committed Oct 17, 2024
1 parent 1319b4b commit 2499892
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
- name: generate docs
run: |
python docs.py --version ${{needs.deploy.outputs.tag}}
redoc-cli bundle ./docs/model_redoc.json -o ./docs/model.html
redoc-cli build ./docs/model_redoc.json -t ./docs/model-template.html -o ./docs/model.html
- name: deploy to github pages
uses: peaceiris/actions-gh-pages@v3
Expand Down
8 changes: 2 additions & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>Honeybee Schema</title>
<!-- needed for adaptive design -->
<link rel="icon" type="image/x-icon" href="https://github.com/ladybug-tools/artwork/raw/refs/heads/master/icons_bugs/ico/honeybee.ico">
<meta charset="utf-8"/>
<title>Honeybee Schema</title>
<meta name="viewport" content="width=device-width, initial-scale=1">

<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">

<link rel="shortcut icon" href="https://github.com/ladybug-tools/artwork/raw/master/icons_bugs/ico/honeybee.ico">
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
<style>
img {
height: 50%;
Expand Down
21 changes: 21 additions & 0 deletions docs/model-template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8" />
<title>{{title}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="https://github.com/ladybug-tools/artwork/raw/master/icons_bugs/ico/honeybee.ico">
<style>
body {
padding: 0;
margin: 0;
background-color: "green"
}
</style>
{{{redocHead}}}
{{#unless disableGoogleFont}}<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">{{/unless}}
</head>
<body>
{{{redocHTML}}}
</body>
</html>
24 changes: 0 additions & 24 deletions docs/model.html

This file was deleted.

0 comments on commit 2499892

Please sign in to comment.