Skip to content

Conversation

@tedinski
Copy link
Contributor

Description of changes:

This introduces:

  1. A candidate CI process for building/publishing RMC documentation.
  2. "Hello world" and nothing more to push there.

Resolved issues:

N/A

Call-outs:

  1. The GitHub Actions documentations is deeply confusing about permissions. This PR will be able to test the building of the documentation, but not the publishing of it. We may well have to merge it to find out if that part works or not! (I have several hypotheses about what's going to happen when we try, none of them confirmed or refuted by any documentation I can find.)
  2. This just tacks the documentation build onto the end of the ubuntu-20.04 build, instead of as its own workflow. This is because we want to (not in this PR, but in a later PR) use RMC to test the code examples in the documentation, as well as build and publish Abdal's dashboard. This means we need RMC built and ready to run, so we might as well piggy back on an existing build. (Later, when we have releases of RMC available to download, we can probably separate documentation publishing into its own workflow, instead of piggybacking like this.)

Testing:

  • How is this change tested? We'll have to merge it to see! :(

  • Is this a refactor change? -

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@tedinski tedinski mentioned this pull request Aug 31, 2021
12 tasks
Copy link
Contributor

@celinval celinval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any other way to publish github doc? In my previous team, this branch blew up once people added images to the doc. Another possibility is that we could also add a check here to make sure we are not pushing binary files.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only binary files are the fonts from the mdbook theme. These should change rarely, if ever, and only with changes the to the version of mdbook we're using.

I think this will be fine, but the custom action does have a single-commit option that ensures the gh-pages branch has history wiped out automatically. I don't plan on turning this on for now, but if this becomes a problem in the future, we could switch to using that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fair. Thanks for checking.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we branch protect that branch, so only actions can update it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we download this in a folder outside of the script directory?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There isn't really anyplace better to put it that I can think of.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could put it in the current directory, temp or take the directory as a parameter. It's not a blocker but a nice to have. It keeps the repository clean.

@tedinski tedinski changed the base branch from main-154-2021-08-24 to main September 2, 2021 18:03
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we branch protect that branch, so only actions can update it

site-url = "/rmc/"
git-repository-url = "https://github.com/model-checking/rmc"
# If we get a stable default branch, we can use this feature, but HEAD doesn't work
#edit-url-template = "https://github.com/model-checking/rmc/edit/HEAD/rmc-docs/{path}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uncomment this


# Download mdbook release (vs spending time building it via cargo install)
FILE="mdbook-v0.4.12-x86_64-unknown-linux-gnu.tar.gz"
URL="https://github.com/rust-lang/mdBook/releases/download/v0.4.12/$FILE"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a good way to keep up to date with new releases

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there was a suggestion to use the mdbook action

@tedinski tedinski merged commit d7b4182 into model-checking:main Sep 3, 2021
@tedinski tedinski deleted the new-docs branch September 3, 2021 18:46
chinmaydd pushed a commit to chinmaydd/rmc that referenced this pull request Sep 4, 2021
* Initial hello world for RMC documentation

* copyright line to our new toml file

* fix nits, add new useful readme for documentation development
tedinski added a commit to tedinski/rmc that referenced this pull request Apr 26, 2022
* Initial hello world for RMC documentation

* copyright line to our new toml file

* fix nits, add new useful readme for documentation development
tedinski added a commit that referenced this pull request Apr 27, 2022
* Initial hello world for RMC documentation

* copyright line to our new toml file

* fix nits, add new useful readme for documentation development
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

Successfully merging this pull request may close these issues.

4 participants