d/rules: enable syntax highlighting in manual.html
Andrea Pappacoda
1 year, 7 months ago
41 | 41 |
Multi-Arch: foreign
|
42 | 42 |
Section: doc
|
43 | 43 |
Depends: ${misc:Depends}
|
44 | |
Recommends: libjs-jquery
|
|
44 |
Recommends: libjs-highlight.js, libjs-jquery
|
45 | 45 |
Description: documentation for the OpenGL Mathematics (GLM) library
|
46 | 46 |
OpenGL Mathematics (GLM) is a header only C++ mathematics library
|
47 | 47 |
for graphics software based on the OpenGL Shading Language (GLSL)
|
248 | 248 |
Example of configuration log generated by `GLM_FORCE_MESSAGES`:
|
249 | 249 |
-```cpp
|
250 | 250 |
+
|
251 | |
+```log
|
|
251 |
+```plaintext
|
252 | 252 |
GLM: version 0.9.9.1
|
253 | 253 |
GLM: C++ 17 with extensions
|
254 | 254 |
GLM: Clang compiler detected
|
|
387 | 387 |
An example of build messages generated by GLM:
|
388 | 388 |
-```
|
389 | 389 |
+
|
390 | |
+```log
|
|
390 |
+```plaintext
|
391 | 391 |
GLM: 0.9.9.1
|
392 | 392 |
GLM: C++ 17 with extensions
|
393 | 393 |
GLM: GCC compiler detected"
|
|
400 | 400 |
We need to download a copy of our fork to our local machine. In the terminal, type:
|
401 | 401 |
|
402 | 402 |
-```
|
403 | |
+```text
|
|
403 |
+```plaintext
|
404 | 404 |
>>> git clone <our-repository-fork-git-url>
|
405 | 405 |
```
|
406 | 406 |
|
|
409 | 409 |
We can use the following command to add `upstream` (original project repository) as a remote repository so that we can fetch the latest GLM commits into our branch and keep our forked copy is synchronized.
|
410 | 410 |
|
411 | 411 |
-```
|
412 | |
+```text
|
|
412 |
+```plaintext
|
413 | 413 |
>>> git remote add upstream https://github.com/processing/processing.git
|
414 | 414 |
```
|
415 | 415 |
|
416 | 416 |
To synchronize our fork to the latest commit in the GLM repository, we can use the following command:
|
417 | 417 |
|
418 | 418 |
-```
|
419 | |
+```text
|
|
419 |
+```plaintext
|
420 | 420 |
>>> git fetch upstream
|
421 | 421 |
```
|
422 | 422 |
|
423 | 423 |
Then, we can merge the remote master branch to our current branch:
|
424 | 424 |
|
425 | 425 |
-```
|
426 | |
+```text
|
|
426 |
+```plaintext
|
427 | 427 |
>>> git merge upstream/master
|
428 | 428 |
```
|
429 | 429 |
|
430 | 430 |
Now our local copy of our fork has been synchronized. However, the fork's copy is not updated on GitHub's servers yet. To do that, use:
|
431 | 431 |
|
432 | 432 |
-```
|
433 | |
+```text
|
|
433 |
+```plaintext
|
434 | 434 |
>>> git push origin master
|
435 | 435 |
```
|
436 | 436 |
|
14 | 14 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
|
15 | 15 |
execute_after_dh_auto_build:
|
16 | 16 |
cd doc && doxygen man.doxy
|
17 | |
cmark --unsafe manual.md > manual.html
|
|
17 |
printf '<link rel="stylesheet" href="/usr/share/javascript/highlight.js/styles/default.css">\n<script src="/usr/share/javascript/highlight.js/highlight.min.js"></script>\n<script>hljs.initHighlightingOnLoad();</script>\n' > manual.html
|
|
18 |
cmark --unsafe manual.md >> manual.html
|
18 | 19 |
endif
|
19 | 20 |
|
20 | 21 |
execute_after_dh_auto_install:
|