|
| 1 | +# Doxygen Awesome |
| 2 | + |
| 3 | +[](https://github.com/jothepro/doxygen-awesome-css/releases/latest) |
| 4 | +[](https://github.com/jothepro/doxygen-awesome-css/blob/main/LICENSE) |
| 5 | + |
| 6 | + |
| 7 | +<div class="title_screenshot"> |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | +</div> |
| 12 | + |
| 13 | +**Doxygen Awesome** is a custom **CSS theme for Doxygen HTML-documentation** with lots of customization parameters. |
| 14 | + |
| 15 | +## Motivation |
| 16 | + |
| 17 | +I really like how the Doxygen HTML-documentation is structured! But IMHO it looks a bit outdated. |
| 18 | + |
| 19 | +This theme is an attempt to update the visuals of Doxygen without changing its overall layout too much. |
| 20 | + |
| 21 | +## Features |
| 22 | + |
| 23 | +- 🌈 Clean, modern design |
| 24 | +- 🚀 Heavily customizable by adjusting CSS-variables |
| 25 | +- 🧩 No changes to the HTML structure of Doxygen required |
| 26 | +- 📱 Improved mobile usability |
| 27 | +- 🌘 Dark mode support! |
| 28 | +- 🥇 Works best with **doxygen 1.9.1** - **1.9.4** and **1.9.6** - **1.9.7** |
| 29 | + |
| 30 | +## Examples |
| 31 | + |
| 32 | +Some websites using this theme: |
| 33 | + |
| 34 | +- [Documentation of this repository](https://jothepro.github.io/doxygen-awesome-css/) |
| 35 | +- [wxWidgets](https://docs.wxwidgets.org/3.2/) |
| 36 | +- [OpenCV 5.x](https://docs.opencv.org/5.x/) |
| 37 | +- [Zephyr](https://docs.zephyrproject.org/latest/doxygen/html/index.html) |
| 38 | +- [FELTOR](https://mwiesenberger.github.io/feltor/dg/html/modules.html) |
| 39 | +- [Spatial Audio Framework (SAF)](https://leomccormack.github.io/Spatial_Audio_Framework/index.html) |
| 40 | +- [libCloudSync](https://jothepro.github.io/libCloudSync/) |
| 41 | +- [libsl3](https://a4z.github.io/libsl3/) |
| 42 | + |
| 43 | +## Installation |
| 44 | + |
| 45 | +To use the theme when generating your documentation, bring the required CSS and JS files from this repository into your project. |
| 46 | + |
| 47 | +This can be done in several ways: |
| 48 | + |
| 49 | +- manually copying the files |
| 50 | +- adding the project as a Git submodule |
| 51 | +- adding the project as a npm/xpm dependency |
| 52 | +- installing the theme system wide |
| 53 | + |
| 54 | +All theme files are located in the root of this repository and start with the prefix `doxygen-awesome-`. You may not need all of them. Follow the install instructions to figure out what files are required for your setup. |
| 55 | + |
| 56 | +### Git submodule |
| 57 | + |
| 58 | +For projects which use git, add the repository as a submodule and check out the desired release: |
| 59 | + |
| 60 | +```sh |
| 61 | +git submodule add https://github.com/jothepro/doxygen-awesome-css.git |
| 62 | +cd doxygen-awesome-css |
| 63 | +git checkout v2.2.1 |
| 64 | +``` |
| 65 | + |
| 66 | +### npm/xpm dependency |
| 67 | + |
| 68 | +In the npm ecosystem, this project can be added as a development dependency |
| 69 | +to your project: |
| 70 | + |
| 71 | +```sh |
| 72 | +cd your-project |
| 73 | +npm install https://github.com/jothepro/doxygen-awesome-css#v2.2.1 --save-dev |
| 74 | + |
| 75 | +ls -l node_module/@jothepro/doxygen-awesome-css |
| 76 | +``` |
| 77 | + |
| 78 | +Similarly, in the [xPack](https://xpack.github.io) ecosystem, this project can be added |
| 79 | +as a development dependency to an [`xpm`](https://xpack.github.io/xpm/) |
| 80 | +managed project. |
| 81 | + |
| 82 | +### System-wide |
| 83 | + |
| 84 | +You can even install the theme system-wide by running `make install`. The files will be installed to `/usr/local/share/` by default, but you can customize the install location with `make PREFIX=/my/custom/path install`. |
| 85 | + |
| 86 | +### Choosing a layout |
| 87 | + |
| 88 | +There is two layout options. Choose one of them and configure Doxygen accordingly: |
| 89 | + |
| 90 | +<div class="darkmode_inverted_image"> |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | +</div> |
| 95 | + |
| 96 | +<div class="tabbed"> |
| 97 | + |
| 98 | +- <b class="tab-title">1️⃣ Base Theme </b> |
| 99 | + Comes with the typical Doxygen titlebar. Optionally the treeview in the sidebar can be enabled. |
| 100 | + |
| 101 | + Required files: `doxygen-awesome.css` |
| 102 | + |
| 103 | + Required `Doxyfile` configuration: |
| 104 | + ``` |
| 105 | + GENERATE_TREEVIEW = YES # optional. Also works without treeview |
| 106 | + DISABLE_INDEX = NO |
| 107 | + FULL_SIDEBAR = NO |
| 108 | + HTML_EXTRA_STYLESHEET = doxygen-awesome-css/doxygen-awesome.css |
| 109 | + HTML_COLORSTYLE = LIGHT # required with Doxygen >= 1.9.5 |
| 110 | + ``` |
| 111 | +
|
| 112 | +- <b class="tab-title">2️⃣ Sidebar-Only Theme </b> |
| 113 | + Hides the top titlebar to give more space to the content. The treeview must be enabled in order for this theme to work. |
| 114 | +
|
| 115 | + Required files: `doxygen-awesome.css`, `doxygen-awesome-sidebar-only.css` |
| 116 | +
|
| 117 | + Required `Doxyfile` configuration: |
| 118 | + ``` |
| 119 | +
|
| 120 | + GENERATE_TREEVIEW = YES # required! |
| 121 | + DISABLE_INDEX = NO |
| 122 | + FULL_SIDEBAR = NO |
| 123 | + HTML_EXTRA_STYLESHEET = doxygen-awesome-css/doxygen-awesome.css \ |
| 124 | + doxygen-awesome-css/doxygen-awesome-sidebar-only.css |
| 125 | + HTML_COLORSTYLE = LIGHT # required with Doxygen >= 1.9.5 |
| 126 | + ``` |
| 127 | +
|
| 128 | +</div> |
| 129 | +
|
| 130 | +**Caution**: |
| 131 | +- This theme is not compatible with the `FULL_SIDEBAR = YES` option provided by Doxygen! |
| 132 | +- `HTML_COLORSTYLE` must be set to `LIGHT` since Doxygen 1.9.5! |
| 133 | +
|
| 134 | +### Further installation instructions: |
| 135 | +
|
| 136 | +- [Installing extensions](docs/extensions.md) |
| 137 | +- [Customizing the theme (colors, spacing, border-radius, ...)](docs/customization.md) |
| 138 | +- [Tips and Tricks for further configuration](docs/tricks.md) |
| 139 | +
|
| 140 | +## Browser support |
| 141 | +
|
| 142 | +Tested with |
| 143 | +
|
| 144 | +- Chrome 110, Chrome 109 for Android, Chrome 110 for iOS |
| 145 | +- Safari 16, Safari for iOS 16 |
| 146 | +- Firefox 110, Firefox 110 for Android, Firefox 109 for iOS |
| 147 | +- Edge 110 |
| 148 | +
|
| 149 | +
|
| 150 | +The theme does not strive to be backwards compatible to (significantly) older browser versions. |
| 151 | +
|
| 152 | +
|
| 153 | +## Credits |
| 154 | +
|
| 155 | +Thanks for all the bug reports and inspiring feedback on github! |
| 156 | +
|
| 157 | +Special thanks to all the contributors: |
| 158 | +<br><br> |
| 159 | +<a href="https://github.com/jothepro/doxygen-awesome-css/graphs/contributors"> |
| 160 | + <img src="https://contrib.rocks/image?repo=jothepro/doxygen-awesome-css" /> |
| 161 | +</a> |
| 162 | +
|
| 163 | +<span class="next_section_button"> |
| 164 | +
|
| 165 | +Read Next: [Extensions](docs/extensions.md) |
| 166 | +</span> |
0 commit comments