-
Notifications
You must be signed in to change notification settings - Fork 79
Add landing for GitHub pages, add index to resolved arch #459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,137 @@ | ||
| #!/bin/bash | ||
|
|
||
| # deploy artifacts to a directory, in preparation for GitHub deployment | ||
|
|
||
| ROOT=$(dirname $(dirname $(realpath $BASH_SOURCE[0]))) | ||
|
|
||
| DEPLOY_DIR="$ROOT/_site" | ||
| PAGES_URL="https://riscv-software-src.github.io/riscv-unified-db" | ||
|
|
||
| mkdir -p $DEPLOY_DIR | ||
|
|
||
| echo "Resolve / Create Index" | ||
| ./do gen:resolved_arch | ||
|
|
||
| echo "Build manual" | ||
| ./do gen:html_manual MANUAL_NAME=isa VERSIONS=all | ||
|
|
||
| echo "Build html documentation for generic_rv64" | ||
| ./do gen:html[generic_rv64] | ||
|
|
||
| echo "Generate YARD docs" | ||
| ./do gen:tool_doc | ||
|
|
||
| echo "Create _site/example_cfg" | ||
| mkdir -p $DEPLOY_DIR/example_cfg | ||
|
|
||
| echo "Create _site/manual" | ||
| mkdir -p $DEPLOY_DIR/manual | ||
|
|
||
| echo "Create _site/pdfs" | ||
| mkdir -p $DEPLOY_DIR/pdfs | ||
|
|
||
| echo "Create _site/htmls" | ||
| mkdir mkdir -p $DEPLOY_DIR/htmls | ||
|
|
||
| echo "Copy cfg html" | ||
| cp -R gen/cfg_html_doc/generic_rv64/html $DEPLOY_DIR/example_cfg | ||
|
|
||
| echo "Create RVA20 Profile Release PDF Spec" | ||
| ./do gen:profile[RVA20] | ||
|
|
||
| echo "Copy RVA20 Profile Release PDF" | ||
| cp gen/profile_doc/pdf/RVA20.pdf $DEPLOY_DIR/pdfs/RVA20.pdf | ||
|
|
||
| echo "Create RVA22 Profile Release PDF Spec" | ||
| ./do gen:profile[RVA22] | ||
|
|
||
| echo "Copy RVA22 Profile Release PDF" | ||
| cp gen/profile_doc/pdf/RVA22.pdf $DEPLOY_DIR/pdfs/RVA22.pdf | ||
|
|
||
| echo "Create RVI20 Profile Release PDF Spec" | ||
| ./do gen:profile[RVI20] | ||
|
|
||
| echo "Copy RVI20 Profile Release PDF" | ||
| cp gen/profile_doc/pdf/RVA20.pdf $DEPLOY_DIR/pdfs/RVI20.pdf | ||
|
|
||
| echo "Create MC100-32 PDF Spec" | ||
| ./do gen:cert_model_pdf[MC100-32] | ||
|
|
||
| echo "Copy MC100-32 PDF" | ||
| cp gen/certificate_doc/pdf/MC100-32.pdf $DEPLOY_DIR/pdfs/MC100-32.pdf | ||
|
|
||
| echo "Create MC100-32 HTML Spec" | ||
| cp ./do gen:cert_model_html[MC100-32] | ||
|
|
||
| echo "Copy MC100-32 HTML" | ||
| cp gen/certificate_doc/html/MC100-32.html $DEPLOY_DIR/htmls/MC100-32.html | ||
|
|
||
| echo "Create MC100-64 PDF Spec" | ||
| ./do gen:cert_model_pdf[MC100-64] | ||
|
|
||
| echo "Copy MC100-64 PDF" | ||
| cp gen/certificate_doc/pdf/MC100-64.pdf $DEPLOY_DIR/pdfs/MC100-64.pdf | ||
|
|
||
| echo "Create MC100-64 HTML Spec" | ||
| ./do gen:cert_model_html[MC100-64] | ||
|
|
||
| echo "Copy MC100-64 HTML" | ||
| cp gen/certificate_doc/html/MC100-64.html $DEPLOY_DIR/htmls/MC100-64.html | ||
|
|
||
| echo "Copy manual html" | ||
| cp -R gen/manual/isa/top/all/html $DEPLOY_DIR/manual | ||
|
|
||
| echo "Create index" | ||
| cat <<- EOF > $DEPLOY_DIR/index.html | ||
| <!doctype html> | ||
| <html lang="en-us"> | ||
| <head> | ||
| <title>Release artifacts for $GITHUB_REF_NAME</title> | ||
| </head> | ||
| <body> | ||
| <h1>Release artifacts for <code>riscv-unified-db</code>, ref $GITHUB_REF_NAME</h1> | ||
| <h2>Commit $GITHUB_SHA</h2> | ||
| <p>Created on $(date)</p> | ||
|
|
||
| <br/> | ||
| <h3>Resolved architecture</h3> | ||
| <ul> | ||
| <li><a href="$PAGES_URL/resolved_arch/index.yaml">index.yaml</a> Database index, as array of relative paths from $PAGES_URL/resolved_arch</li> | ||
| </ul> | ||
|
|
||
| <br/> | ||
| <h3>ISA Manual</h3> | ||
| <ul> | ||
| <li><a href="$PAGES_URL/manual/html/index.html">Generated HTML ISA manuals, all versions</a></li> | ||
| </ul> | ||
|
|
||
| <br/> | ||
| <h3>Profiles</h3> | ||
| <ul> | ||
| <li><a href="$PAGES_URL/pdfs/RVI20.pdf">RVI20</a></li> | ||
| <li><a href="$PAGES_URL/pdfs/RVA20.pdf">RVA20</a></li> | ||
| <li><a href="$PAGES_URL/pdfs/RVA22.pdf">RVA22</a></li> | ||
| </ul> | ||
|
|
||
| <br/> | ||
| <h3>Certification Requirements Documents</h3> | ||
| <ul> | ||
| <li><a href="$PAGES_URL/pdfs/MC100-32.pdf">MC100-32</a></li> | ||
| <li><a href="$PAGES_URL/pdfs/MC100-64.pdf">MC100-64</a></li> | ||
| </ul> | ||
|
|
||
| <br/> | ||
| <h3>Configuration-specific documentation</h3> | ||
| <ul> | ||
| <li><a href="$PAGES_URL/example_cfg/html/index.html">Architecture documentation for example RV64 config</a></li> | ||
| </ul> | ||
|
|
||
| <br/> | ||
| <h3>UDB Tool Documentation</h3> | ||
| <ul> | ||
| <li><a href="$PAGES_URL/ruby/idl/index.html">IDL language documentation</a></li> | ||
| <li><a href="$PAGES_URL/ruby/arch_def/index.html">Ruby UDB interface documentation</a></li> | ||
| </ul> | ||
| </body> | ||
| </html> | ||
| EOF |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.