Loading
Commits on Source 22
-
Dawid Chemloul authored
-
Kjell Ahlstedt authored
Connected on_unbind_list_item to factory signal_unbind See merge request GNOME/gtkmm-documentation!22
-
Kjell Ahlstedt authored
Affects examples book/buildapp/step6, step7, step8, step9 and book/searchbar.
-
Kjell Ahlstedt authored
Allow the validation to fail until we have been able to figure out what's wrong with the Chinese translation. It does not fail in Ubuntu 24.04. Probably depends on which version of itstool is used.
-
Kjell Ahlstedt authored
In some situations the translation tools (itstool and friends) can't create translated index.docbook files if a <programlisting> element occurs in a <para> element. See !11 A <programlisting> in a <para> can behave differently depending on which version of libxml2 is used. (itstool calls functions in libxml2.) Don't put any <programlisting> in a <para>.
-
Kjell Ahlstedt authored
-
Kjell Ahlstedt authored
The glib-compile-resources command is not described there nowadays. Fixes #21
-
Kjell Ahlstedt authored
Require python3 >= 3.7. That's what Meson requires.
-
Kjell Ahlstedt authored
* docs/tutorial/C/index-in.docbook: Add Mouse Events section. * Rename docs/tutorial/C/figures/keyboardevents_simple.png -> events_simple.png * Rename docs/tutorial/C/figures/keyboardevents_propagation.png -> events_propagation.png * docs/tutorial/C/figures/events_mouse.png: New file. * docs/tutorial/Makefile.am: * docs/tutorial/meson.build: * examples/Makefile.am: * examples/book/meson.build: Rename and add files and directories. * Rename examples/book/keyboard_events -> events * Rename examples/book/events/simple -> keyboard_simple * Rename examples/book/events/propagation -> keyboard_propagation * examples/book/events/mouse/*: New example. Part of the new example program has been provided by Petr Talla. Fixes #23
-
Sid authored
Adds highlight.js v11.9.0. I've evaluated the following 3 C++ highlighting CSS styles: - default.min.css (default C++ style provided by highlight.js) - intellij-light.min.css (intellij C++ style) - stackoverflow-light.min.css (stackoverflow C++ style) After a few tries in various pages, I settled upon intellij style, as it looked good and wasn't distracting (as with stackoverflow style sometimes with too much orange), and not too passive colors (as with default.min.css). So, the current 'highlight.min.css' is actually 'intellij-light.min.css'. Please feel free to modify in needed.
-
Sid authored
-
Sid authored
This commit adds the following code in the '<head>' tag of all generated HTML files, as shown below: --- a/chapter-basics.html +++ b/chapter-basics.html @@ -1,5 +1,12 @@ <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <link rel="stylesheet" href="highlight.min.css"> + <script src="highlight.min.js"></script> + <script> + hljs.configure({languages: ['cpp']}); + hljs.highlightAll(); + </script> <title>Chapter 3. Basics</title> <link rel="stylesheet" type="text/css" href="style.css"> -
Sid authored
E.g: <pre> <code> actual code </code> </pre> The <pre> tags will be generated when <programlisting> is converted to HTML. -
Sid authored
E.g: <pre> <code> actual code </code> </pre> The <pre> tags will be generated when <programlisting> is converted to HTML. Actual changes: - Substitute <programlisting> with <programlisting><code> - Substitute </programlisting> with </code></programlisting> -
Sid authored
'xmllint' is pretty useless at reporting RELAX-NG errors, as it gives unrelated error hints and line numbers as below: docs/tutorial/index.docbook:10426: element para: Relax-NG validity error : Did not expect element para there docs/tutorial/index.docbook:10433: element section: Relax-NG validity error : Did not expect element section there docs/tutorial/index.docbook:10433: element section: Relax-NG validity error : Element chapter has extra content: section docs/tutorial/index.docbook:44: element info: Relax-NG validity error : Element book has extra content: info docs/tutorial/index.docbook fails to validate Refer https://github.com/NixOS/nixpkgs/issues/4966 for more details. With 'jing', the error was correctly identified as invalid use of >kmm; within <code> tag. $ jing https://docbook.org/xml/5.0/rng/docbook.rng docs/tutorial/index.docbook index.docbook:10504:40: error: element "application" not allowed here; expected the element end-tag, text or element "alt", "anchor", "annotation" ...
-
Sid authored
Some code snippets (not included example files) still start on a new line in docbook. This is addressed in a subsequent commit.
-
Sid authored
code: default template used in programlisting or screen function: default template used in programlisting or screen
-
Sid authored
There were 130 instances. Replaced with emacs macros.
-
Kjell Ahlstedt authored
Add support for code syntax highlighting in HTML Closes #24 See merge request GNOME/gtkmm-documentation!23
-
Kjell Ahlstedt authored
Distribute book.xsl, highlight.js/highlight.min.css and highlight.js/highlight.min.js. These files are used only when building with meson.
-
Kjell Ahlstedt authored
-
Jeremy Bícha authored