| 1 | # Documentation |
| 2 | |
| 3 | ## Generate documentation |
| 4 | |
| 5 | Note on documentation: The source files contain links to the online documentation at https://json.nlohmann.me. This URL |
| 6 | contains the most recent documentation and should also be applicable to previous versions; documentation for deprecated |
| 7 | functions is not removed, but marked deprecated. |
| 8 | |
| 9 | If you want to see the documentation for a specific tag or commit hash, you can generate it as follows (here for tag |
| 10 | `v3.10.2`): |
| 11 | |
| 12 | ```shell |
| 13 | git clone https://github.com/nlohmann/json.git |
| 14 | cd json |
| 15 | git checkout v3.10.2 |
| 16 | make install_venv serve -C docs/mkdocs |
| 17 | ``` |
| 18 | |
| 19 | Open URL <http://127.0.0.1:8000/> in your browser. Replace from any URL from the source code `https://json.nlohmann.me` |
| 20 | with `http://127.0.0.1:8000` to see the documentation for your tag or commit hash. |