- The platform and tools used to build the documentation is Antora.
- The file format that the documentation is written in is AsciiDoc.
- The UI & UX of the documentation can be found at docs-ui
Refer to the Antora Site Structure for Docs for more information.
Refer to the Documentation Guidelines for more information about backgrounds and processes.
To get started contributing to the documentation, please refer to the Getting Started Guide.
With regard to language and style issues, consult the Style Guide.
To generate the documentation, whether in HTML or PDF format, please refer to the Building the Documentation guide.
If you want to suggest an improvement to the ownCloud documentation theme, such as the layout, the header or the footer text, or if you find a bug, all the information that you need is in the docs-ui
repository. Changes made in docs-ui
are valid for the whole documentation.
Please read how to test un-merged docs-ui changes with content from the ownCloud documentation.
Refer to Best Practices and Tips for writing in AsciiDoc for more information.
To check for broken links manually, see install and use a broken-link-checker.
Please always do your changes in master
and backport them to the relevant branches.
The ONLY reason for doing a PR in a branch directly is, to fix an issue which is
only present in that particular branch! When creating a PR and it is necessary to backport,
document in the PR to which branches a backport is needed.
When backporting, consider using the backport script which eases life a lot and speeds up the process. It is also very benificial when using the extended code provided, because a clear naming structure of the backport PR is generated automatically.
Changes made will get published to the web under the following conditions:
- A nightly running drone job pulls the documentation from the Client, IOS and Android repo. This pull will also be used for any builds triggered by the scenarios outlined below. This means for changes made in one of these repos, a merge to master or one of the used branches in docs the next day is necessary to get them published.
- A merge to one of the defined version branches triggers as a last step a master branch build.
- A merge to master triggers a site build which then pushes all versions defined in site.yml.
Please refer to Create a New Version Branch for Docs for more information.
The script bin/ownCloudDocPdf.py
, temporarily necessary until Antora is upgraded to Version 3, allows users to convert a sequence of web pages to the PDF format. It navigates through pages of a manual by following a "next" link on each page and converts each page to a PDF. The PDFs are then merged into a single PDF file for further use. Note that this script has a chance to miss pages as it is based on continuous chains of "next" links compared to Antora generated pdf which accesses a full content catalogue.
The script requires Python to be installed and some libraries provided by th OS and is executed from the command line. It accepts a URL as an argument.
python bin/ownCloudDocPdf.py [URL]
python bin/ownCloudDocPdf.py https://doc.owncloud.com/webui/next/classic_ui/
Python (Script developed and tested with version 3.10)
wkhtmltopdf
pdftk
requests
Install the Python requests library:
python -m pip install requests
On Debian-based systems, install wkhtmltopdf
and pdftk
using:
sudo apt-get install wkhtmltopdf pdftk
On other systems, please refer to the documentation for wkhtmltopdf
and pdftk
for installation instructions.
Output The script will output a PDF file named output.pdf in the current directory. If a file with that name already exists, the script will increment a number in parentheses until it finds an unused filename (like output(1).pdf, output(2).pdf, etc.).
Notes The temporary PDF files generated for each page are stored under /tmp/ and are deleted after the final PDF is merged. Ensure that you have write permissions in the directory where the script is run, as it will attempt to save the output PDF in that location.