|
| 1 | +# Practicalli Learn Clojure |
| 2 | + |
| 3 | +```none |
| 4 | +██████╗ ██████╗ █████╗ ██████╗████████╗██╗ ██████╗ █████╗ ██╗ ██╗ ██╗ |
| 5 | +██╔══██╗██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██║██╔════╝██╔══██╗██║ ██║ ██║ |
| 6 | +██████╔╝██████╔╝███████║██║ ██║ ██║██║ ███████║██║ ██║ ██║ |
| 7 | +██╔═══╝ ██╔══██╗██╔══██║██║ ██║ ██║██║ ██╔══██║██║ ██║ ██║ |
| 8 | +██║ ██║ ██║██║ ██║╚██████╗ ██║ ██║╚██████╗██║ ██║███████╗███████╗██║ |
| 9 | +╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ |
| 10 | +``` |
| 11 | + |
| 12 | +## Book status |
| 13 | + |
| 14 | +[](https://github.com/practicalli/learn-clojure/actions/workflows/megalinter.yaml)[](https://github.com/practicalli/learn-clojure/actions/workflows/publish-book.yaml) |
| 15 | +[](https://github.com/practicalli/learn-clojure/actions/workflows/publish-book.yaml) |
| 16 | +[](https://github.com/practicalli/learn-clojure/actions/workflows/pages/pages-build-deployment) |
| 17 | + |
| 18 | +[](https://github.com/practicalli/clojure/issues) |
| 19 | +[](https://github.com/practicalli/clojure/pulls) |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +## Creative commons license |
| 26 | + |
| 27 | +<div style="width:95%; margin:auto;"> |
| 28 | + <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a> |
| 29 | + This work is licensed under a Creative Commons Attribution 4.0 ShareAlike License (including images & stylesheets). |
| 30 | +</div> |
| 31 | + |
| 32 | + |
| 33 | +## Contributing |
| 34 | + |
| 35 | +Issues and pull requests are most welcome. Please detail issues as much as you can. Pull requests are simpler to work with when they are specific to a page or at most a section. The smaller the change the quicker it is to review and merge. |
| 36 | + |
| 37 | +Please [see the detailed contributing section of the book](https://practicalli/learn-clojure/contributing/) before raising an issue or pull request |
| 38 | + |
| 39 | +* [Current Issues](https://github.com/practicalli/learn-clojure/issues) |
| 40 | +* [Current pull requests](https://github.com/practicalli/learn-clojure/pulls) |
| 41 | + |
| 42 | +[Practicalli Clojure CLI Config](clojure/clojure-cli/practicalli-config.md) provides a user level configuration used in this guide and issues and pull requests can also be made there. |
| 43 | + |
| 44 | +By submitting content ideas and corrections you are agreeing they can be used in this workshop under the [Creative Commons Attribution ShareAlike 4.0 International license](https://creativecommons.org/licenses/by-sa/4.0/). Attribution will be detailed via [GitHub contributors](https://github.com/practicalli/learn-clojure/graphs/contributors). |
| 45 | + |
| 46 | +## Sponsor Practicalli |
| 47 | + |
| 48 | +[](https://github.com/sponsors/practicalli-john/) |
| 49 | + |
| 50 | +The majority of my work is focused on the [Practicalli series of books and videos](https://practical.li/) and an advisory role with several communities |
| 51 | + |
| 52 | +Thank you to [Cognitect](https://www.cognitect.com/), [Nubank](https://nubank.com.br/) and a wide range of other [sponsors](https://github.com/sponsors/practicalli-john#sponsors) for your continued support |
| 53 | + |
| 54 | + |
| 55 | +## GitHub Actions |
| 56 | + |
| 57 | +The megalinter GitHub actions will run when a pull request is created,checking basic markdown syntax. |
| 58 | + |
| 59 | +A review of the change will be carried out by the Practicalli team and the PR merged if the change is acceptable. |
| 60 | + |
| 61 | +The Publish Book GitHub action will run when PR's are merged into main (or the Practicalli team pushes changes to the default branch). |
| 62 | + |
| 63 | +Publish book workflow installs Material for MkDocs version 9 |
| 64 | + |
| 65 | + |
| 66 | +## Local development |
| 67 | + |
| 68 | +Install mkdocs version 9 using the Python pip package manager |
| 69 | + |
| 70 | +```bash |
| 71 | +pip install mkdocs-material=="9.*" |
| 72 | +``` |
| 73 | + |
| 74 | +Install the plugins used by the Practicalli site using Pip (these are also installed in the GitHub Action workflow) |
| 75 | + |
| 76 | +```bash |
| 77 | +pip3 install mkdocs-material mkdocs-callouts mkdocs-glightbox mkdocs-git-revision-date-localized-plugin mkdocs-redirects pillow cairosvg |
| 78 | +``` |
| 79 | + |
| 80 | +> pillow and cairosvg python packages are required for [Social Cards](https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards/) |
| 81 | +
|
| 82 | +Fork the GitHub repository and clone that fork to your computer, |
| 83 | + |
| 84 | +```bash |
| 85 | +git clone https://github.com/<your-github-account>/<repository>.git |
| 86 | +``` |
| 87 | + |
| 88 | +Run a local server from the root of the cloned project |
| 89 | + |
| 90 | +```bash |
| 91 | +make docs |
| 92 | +``` |
| 93 | + |
| 94 | +The website will open at <http://localhost:8000> |
| 95 | + |
| 96 | +If making smaller changes, then only rebuild the content that changes, speeding up the local development process |
| 97 | + |
| 98 | +```shell |
| 99 | +make docs |
| 100 | +``` |
| 101 | + |
| 102 | +Speed up the book build using the `docs-changed` target to rebuild only the pages that have file changes. Recommended when only changing content in a specific page. |
| 103 | + |
| 104 | +```shell |
| 105 | +make docs-changed |
| 106 | +``` |
| 107 | + |
| 108 | +> NOTE: navigation changes may not be correctly reflected without reloading the page in the web browser or carrying out a full `make docs` build |
| 109 | +
|
0 commit comments