BuildingDocumentation
|
Size: 4488
Comment: Added generic segment. Did s/gnome/ubuntu/g; s/kde/kubuntu/g;
|
← Revision 41 as of 2020-04-23 19:58:36 ⇥
Size: 5322
Comment: add link to more detailed installation guide procedure
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| = Building Documentation Yourself = | #title Building the System Documentation |
| Line 3: | Line 3: |
| Docteam documents are built with GNU {{{make}}}. | <<Include(DocumentationTeam/MenuBar)>> <<Include(DocumentationTeam/MeetingBanner)>> |
| Line 5: | Line 6: |
| If you set up your svn repository according to DocteamStepByStepRepository, then the makefiles required for building the GNOME and KDE docs are in {{{ubuntu-doc/gnome}}} and {{{ubuntu-doc/kde}}} respectively. | Documentation which is written in Mallard and Docbook XML can be quite easily converted into other formats. This page deals with converting to HTML and PDF. |
| Line 7: | Line 8: |
| To build the docs, open a terminal and change to the appropriate directory (either {{{ubuntu-doc/gnome}}} or {{{ubuntu-doc/kde}}}). The tables below show which commands to use to build a specific document or group of documents. You will need to following packages installed: {{{make}}}, {{{docbook-xsl}}}. | = Building HTML Documentation = |
| Line 9: | Line 10: |
| '''Note:''' These documents are all available on DocteamProjects. | 1. Set up a copy of the docteam bzr branch as described on [[DocumentationTeam/SystemDocumentation/Repository|Repository page]]. Choose the appropriate branch for the version of Ubuntu documentation you wish to build. If this is not the first time you have done a build with this branch you must do a {{{ make clean }}} from within the ubuntu-help sub-directory first. 1. Install at least the following packages: make gettext gnome-doc-utils docbook-xsl yelp-tools gnome-common yelp-xsl 1. Type: {{{ ./autogen.sh }}} 1. If more than just english html is desired, then the other languages .page file need to be built first. Type: {{{ cd ubuntu-help make cd .. }}} 1. Now generate the HTML. Type: {{{ cd html make }}} |
| Line 11: | Line 21: |
| '''Note:''' You will see a lot of errors like the following: | This command will build HTML versions of all the documents available and place them in the html/build directory. |
| Line 13: | Line 23: |
| {{{No localization exists for "c" or "". Using default "en".}}} | The command uses the various language .page files to create the html. |
| Line 15: | Line 25: |
| It is due to document language setting. In the document, it is mentioned as "&EnglishAmerican;". This variable is defined in ubuntu-doc/libs/global.ent file. If you are worried about this error, you can edit the document and set it as "en". Anyhow, you need not worry about this error; it does not affect the output. | There are a number of other make targets which you can use to build specific or miscellaneous documents. Read through the Makefile to discover what these are. |
| Line 17: | Line 27: |
| == Ubuntu Documents == | You will see a lot of warnings like the following, which can be safely ignored: {{{No localization exists for "c" or "". Using default "en".}}} |
| Line 19: | Line 30: |
| ||<:#f0f5fa>'''Command'''||<:#f0f5fa>'''Document'''||<:#f0f5fa>'''Output File Location'''|| ## ||<:>'''make all'''||builds all documents||{{{ubuntu-doc/build/ubuntu}}}|| ## ||<:>'''make qg'''||Ubuntu Quick Tour||{{{ubuntu-doc/build/ubuntu/quickguide/C/index.html}}}|| ## ||<:>'''make ag'''||Ubuntu Administrator Guide||{{{ubuntu-doc/build/ubuntu/adminguide/C/index.html}}}|| ## ||<:>'''make in'''||Ubuntu Installation Guide||{{{ubuntu-doc/build/ubuntu/ubuntu-install/C/index.html}}}|| ## ||<:>'''make au'''||About Ubuntu||{{{ubuntu-doc/build/ubuntu/about-ubuntu/C/index.html}}}|| ## ||<:>'''make rn'''||Release Notes||{{{ubuntu-doc/build/ubuntu/release-notes/C/index.html}}}|| ## ||<:>'''make faq'''||Builds all FAQs||See individual FAQ guides|| ## ||<:>'''make faqi386'''||FAQ for Intel platform||{{{ubuntu-doc/build/ubuntu/faqi386/C/index.html}}}|| ## ||<:>'''make faqamd64'''||FAQ for AMD 64 bit platform||{{{ubuntu-doc/build/ubuntu/faqamd64/C/index.html}}}|| ## ||<:>'''make faqppc'''||FAQ for Power PC platform||{{{ubuntu-doc/build/ubuntu/faqppc/C/index.html}}}|| ## ||<:>'''make status'''||builds a status report for each document||{{{ubuntu-doc/build/ubuntu/status}}}|| |
Since Ubuntu 7.04, the Ubuntu system documentation has split into several categories, many of which link between them using an internal Gnome/KDE linking system. When the documents are converted into HTML, this results in a lot of links being broken. For this reason we use a script called {{{fix-urls.sh}}} to correct the broken internal links. This script is run automatically as part of the {{{make}}} command described above. |
| Line 43: | Line 32: |
| '''Note:''' The style guide is applicable to both Ubuntu and Kubuntu documents. | In case you are building kubuntu-docs on Ubuntu system, you will also need to install [[apt:khelpcenter4|khelpcenter4]] package at step 2 above (It would have already been installed on a Kubuntu system). |
| Line 45: | Line 34: |
| == Kubuntu Documents == | = Updating help.ubuntu.com = |
| Line 47: | Line 36: |
| ||<:#f0f5fa>'''Command'''||<:#f0f5fa>'''Document'''||<:#f0f5fa>'''Output File Location'''|| ## ||<:>'''make kall'''||builds all documents||{{{ubuntu-doc/build/kubuntu}}}|| ## ||<:>'''make kak'''||About Kubuntu||{{{ubuntu-doc/build/kubuntu/about-kubuntu/C/index.html}}}|| ## ||<:>'''make kug'''||Kubuntu User Guide||{{{ubuntu-doc/build/kubuntu/kuserguide/C/index.html}}}|| ## ||<:>'''make kag'''||Kubuntu Administrator Guide||{{{ubuntu-doc/build/kubuntu/kadminguide/C/index.html}}}|| ## ||<:>'''make krn'''||Release Notes||{{{ubuntu-doc/build/kubuntu/krelease-notes/C/index.html}}}|| ## ||<:>'''make kqg'''||Kubuntu Quick Guide||{{{ubuntu-doc/build/kubuntu/kquickguide/C/index.html}}}|| ## ||<:>'''make kspec'''||Kubuntu doc specs||{{{ubuntu-doc/build/kubuntu/kadminguide/C/index.html}}}|| ## ||<:>'''make kfaq'''||Builds all FAQs||See individual FAQ guides|| ## ||<:>'''make kfaqi386'''||FAQ for Intel platform||{{{ubuntu-doc/build/kubuntu/kfaqi386/C/index.html}}}|| ## ||<:>'''make kfaqamd64'''||FAQ for AMD 64 bit platform||{{{ubuntu-doc/build/kubuntu/kfaqamd64/C/index.html}}}|| ## ||<:>'''make kfaqppc'''||FAQ for Power PC platform||{{{ubuntu-doc/build/kubuntu/kfaqppc/C/index.html}}}|| ## ||<:>'''make kin'''||Kubuntu Installation Guide||{{{ubuntu-doc/build/kubuntu/kubuntu-install/C/index.html}}}|| ## ||<:>'''make kum'''||Kynaptic User Manual||{{{ubuntu-doc/build/kubuntu/kynaptic/C/index.html}}}|| ## ||<:>'''make kstatus'''||builds a status report for each document||{{{ubuntu-doc/build/kubuntu/status}}}|| |
The static pages on [[https://help.ubuntu.com|help.ubuntu.com]] (as opposed to the [[https://help.ubuntu.com/community|community wiki]]) are kept updated by pushing the HTML documents built to a [[https://code.launchpad.net/~ubuntu-core-doc/help.ubuntu.com/help.ubuntu.com|specific bzr branch]] on Launchpad. |
| Line 77: | Line 38: |
| The following table lists all generic documents. They are applicable for Ubuntu and Kubuntu Linux. | The contents of the help.ubuntu.com bzr branch are generally identical to the output of the {{{make}}} commands for all languages described in the previous section, subject to the following exceptions: * The various languages are combined into one sub-directory, differentiated with the language code added to the end of the file name. The web server automatically delivers the correct language content based on the users language settings. To create the required structure, in html/ubuntu-docs, type (from the html sub-directory): {{{ make install }}} * A custom index.html page is used which is not part of the build process. * A copy of the [[https://launchpad.net/ubuntu/+source/installation-guide|Ubuntu installation guide]] is added to the build process together with a custom index.html page. [[DocumentationTeam/SystemDocumentation/UbuntuInstallationGuide|The detailed procedure]]. * The PDF version of the serverguide should be built separately. See below for instructions. * The root index for the website should be manually updated to add or remove links to each release as they are added or removed from the site. |
| Line 79: | Line 48: |
| == Generic Documents == | The help.ubuntu.com website is automatically pulled once per day from the bzr branch. If this doesn't work, please contact the Canonical Sysadmins after waiting a reasonable period (e.g. at least 24 hours). |
| Line 81: | Line 50: |
| ||<:#f0f5fa>'''Command'''||<:#f0f5fa>'''Document'''||<:#f0f5fa>'''Output File Location'''|| ## ||<:>'''make sg'''||Docteam Style Guide||{{{ubuntu-doc/build/ubuntu/styleguide/C/index.html}}}|| ## ||<:>'''make server'''||Docteam Server Starter Guide||{{{ubuntu-doc/build/ubuntu/styleguide/C/index.html}}}|| |
'''Note:''' the HTML documentation on help.ubuntu.com should always reflect the documentation as it appears in the applicable version of Ubuntu. For Desktop help, changes to the help.ubuntu.com branch should not be made without the StableReleaseUpdates (SRU) procedure first being followed and an equivalent change being made to the mainline bzr branch for the package version of the project and for the Ubuntu version concerned. The Serverguide is not released as a package and therefore does not require SRU procedures. = Building Translated HTML (for DocBook source code) = If building translated copies of the documentation, you will need to adjust the Makefile and substitute your language code for the {{{LN}}} variable defined near the top of the Makefile. You may also wish to modify the header and footer details. These can be found in the {{{libs/ubuntu-banner.xsl}}} file. = Building PDF = To build PDF, we currently use a tool called [[http://xmlgraphics.apache.org/fop/|Apache Fop]]. Currently, the only document which we build a PDF version of is the Ubuntu Server Guide. To build a PDF version of the Server Guide, [[apt:fop|install the fop package]] and run the following command from an ubuntu-doc branch: {{{make serverguide-pdf}}} If you are interested in building other documents, read the {{{serverguide-pdf}}} target in the Makefile for more information. |
Inclusion deadlines for Impish – String Freeze: September 16, 2021 / Non-language packs: September 30, 2021 |
Documentation which is written in Mallard and Docbook XML can be quite easily converted into other formats. This page deals with converting to HTML and PDF.
Building HTML Documentation
Set up a copy of the docteam bzr branch as described on Repository page. Choose the appropriate branch for the version of Ubuntu documentation you wish to build. If this is not the first time you have done a build with this branch you must do a make clean from within the ubuntu-help sub-directory first.
- Install at least the following packages: make gettext gnome-doc-utils docbook-xsl yelp-tools gnome-common yelp-xsl
Type: ./autogen.sh
If more than just english html is desired, then the other languages .page file need to be built first. Type:
cd ubuntu-help make cd ..
Now generate the HTML. Type:
cd html make
This command will build HTML versions of all the documents available and place them in the html/build directory.
The command uses the various language .page files to create the html.
There are a number of other make targets which you can use to build specific or miscellaneous documents. Read through the Makefile to discover what these are.
You will see a lot of warnings like the following, which can be safely ignored:
No localization exists for "c" or "". Using default "en".
Since Ubuntu 7.04, the Ubuntu system documentation has split into several categories, many of which link between them using an internal Gnome/KDE linking system. When the documents are converted into HTML, this results in a lot of links being broken. For this reason we use a script called fix-urls.sh to correct the broken internal links. This script is run automatically as part of the make command described above.
In case you are building kubuntu-docs on Ubuntu system, you will also need to install khelpcenter4 package at step 2 above (It would have already been installed on a Kubuntu system).
Updating help.ubuntu.com
The static pages on help.ubuntu.com (as opposed to the community wiki) are kept updated by pushing the HTML documents built to a specific bzr branch on Launchpad.
The contents of the help.ubuntu.com bzr branch are generally identical to the output of the make commands for all languages described in the previous section, subject to the following exceptions:
- The various languages are combined into one sub-directory, differentiated with the language code added to the end of the file name. The web server automatically delivers the correct language content based on the users language settings. To create the required structure, in html/ubuntu-docs, type (from the html sub-directory):
make install
- A custom index.html page is used which is not part of the build process.
A copy of the Ubuntu installation guide is added to the build process together with a custom index.html page. The detailed procedure.
- The PDF version of the serverguide should be built separately. See below for instructions.
- The root index for the website should be manually updated to add or remove links to each release as they are added or removed from the site.
The help.ubuntu.com website is automatically pulled once per day from the bzr branch. If this doesn't work, please contact the Canonical Sysadmins after waiting a reasonable period (e.g. at least 24 hours).
Note: the HTML documentation on help.ubuntu.com should always reflect the documentation as it appears in the applicable version of Ubuntu. For Desktop help, changes to the help.ubuntu.com branch should not be made without the StableReleaseUpdates (SRU) procedure first being followed and an equivalent change being made to the mainline bzr branch for the package version of the project and for the Ubuntu version concerned. The Serverguide is not released as a package and therefore does not require SRU procedures.
Building Translated HTML (for DocBook source code)
If building translated copies of the documentation, you will need to adjust the Makefile and substitute your language code for the LN variable defined near the top of the Makefile.
You may also wish to modify the header and footer details. These can be found in the libs/ubuntu-banner.xsl file.
Building PDF
To build PDF, we currently use a tool called Apache Fop.
Currently, the only document which we build a PDF version of is the Ubuntu Server Guide. To build a PDF version of the Server Guide, install the fop package and run the following command from an ubuntu-doc branch:
make serverguide-pdf
If you are interested in building other documents, read the serverguide-pdf target in the Makefile for more information.
DocumentationTeam/SystemDocumentation/BuildingDocumentation (last edited 2020-04-23 19:58:36 by dsmythies)