Skip to content

best-practice-and-impact/ons-spark

Repository files navigation

Spark at the ONS

Spark learning materials compiled by members of the Office for National Statistics

Usage

Building the book

If you'd like to develop and/or build the Spark at the ONS book, you should:

  1. Clone this repository
  2. Run pip install -r requirements.txt (it is recommended you do this within a virtual environment)
  3. (Optional) Edit the books source files located in the ons-spark/ directory
  4. Run jupyter-book clean ons-spark/ to remove any existing builds
  5. Run jupyter-book build ons-spark/
  6. Check the built HTML pages are correct (these will be in ons-spark/_build/html)
  7. Once you are happy, to deploy the book online run ghp-import -n -p -f ons-spark/_build/html.
  8. Note you may need to do pip install ghp-import if you do not already have this installed.

A fully-rendered HTML version of the book will be built in ons-spark/_build/html/.

Hosting the book

Please see the Jupyter Book documentation to discover options for deploying a book online using services such as GitHub, GitLab, or Netlify.

For GitHub and GitLab deployment specifically, the cookiecutter-jupyter-book includes templates for, and information about, optional continuous integration (CI) workflow files to help easily and automatically deploy books online with GitHub or GitLab. For example, if you chose github for the include_ci cookiecutter option, your book template was created with a GitHub actions workflow file that, once pushed to GitHub, automatically renders and pushes your book to the gh-pages branch of your repo and hosts it on GitHub Pages when a push or pull request is made to the main branch.

Contributors

We welcome and recognize all contributions. You can see a list of current contributors in the contributors tab.

Credits

This project is created using the excellent open source Jupyter Book project and the executablebooks/cookiecutter-jupyter-book template.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published