Skip to content
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

"Continuous Deploy" Website #1412

Closed
Mornix opened this issue May 27, 2019 · 4 comments
Closed

"Continuous Deploy" Website #1412

Mornix opened this issue May 27, 2019 · 4 comments
Assignees

Comments

@Mornix
Copy link
Collaborator

Mornix commented May 27, 2019

As part of #1305, the easiest way to access this online documentation and examples is through a website which is generated as part of the CI deploy process.

I haven't yet completed the script to upload the generated fils and code onto a gh-pages branch, but I'm envisioning that part of the process is calling a static-site generator on a set of HTML templates and parameterizing them with the appropriate content such as example names, paths to the PDF and HTML versions of their SRS, a link to a directory of generated code (not sure how this should be formatted or if it should link to a GitHub file in the repo), packages, and package documentation to name a few.

As the last paragraph hinted I haven't worked out much of how to display this information or which static-site generator to use. I'm familiar with Python's Jinja2 templating, however haven't used common generators like Pelican (which seems more blog-oriented). From 30 seconds of searching I found a Haskell library which does static-site generation: "Hakyll" which I haven't looked into.

The first thing to do with this is to find an appropriate static-site generator (or maybe just an HTML templating library is more appropriate for our use case?) I personally would like to stick with Python (since it's already part of CI), or Haskell, although @JacquesCarette may have some opinions on that.

Next step would be to figure out a page hierarchy (if any — although there likely will be) for navigation purposes.

And the final step will be to make the web pages which point to the content.

I'm going to make a quick list of artefacts which will be "pushed" to the website:

  • List of packages (possibly with links to that "folder" on GitHub)
  • Links to the generated Haddock documentation
  • Examples (really their name since there are a few artefacts)
  • Link to the SRS PDF
  • Link to the HTML SRS
  • Link to GitHub with any generated code?

@smiths and @JacquesCarette might have some comments on what I've laid out or artefacts (more generally things) which should be part of the continuous deploy website.

@JacquesCarette
Copy link
Owner

I would lean towards trying Hakyll as a first go.

@smiths
Copy link
Collaborator

smiths commented May 30, 2019

Thank you for creating this issue @Mornix. It is a good starting point for sure. I don't have much to add, just that we will want to be able to add other generated documents in the future, besides the SRS and the code. For instance, there will be some kind of design documentation and possibly a verification plan and report.

@danscime
Copy link
Collaborator

danscime commented Jun 17, 2019

Connected to #1527

@Mornix
Copy link
Collaborator Author

Mornix commented Jul 11, 2019

Continuous Deploy is implemented with #1474. Closing.

@Mornix Mornix closed this as completed Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants