Commit Graph
52 Commits
Author SHA1 Message Date
Sunil Mohan Adapa 7c0fa00536 doc: Add manual page for freedombox-cmd
Tests:

- 'make -C doc' succeeds. 'man doc/freedombox-cmd.1' shows the manual page.

- Building and install .deb package installs the manual page to appropriate
location.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2025-09-29 16:58:42 +03:00
Sunil Mohan Adapa 812ed5d60d *: Introduce make file based build, eliminate setup.py
- setuptools aims to a build library instead of being invoked by setup.py.
Launching setup tools using ./setup.py is deprecated. Launching it using
generic build tools that use pyproject.toml is recommended.

- With the new approach customizing the build is not possible to the earlier
extent. So, introduce is a simple and sufficient build system using 'make'.

Tests:

- Check the pyproject.toml using validate-pyproject tool.

- Run diffoscope on old and new packages and verify that no unexpected changes
were introduced by the build system change.

- None of the files part of .deb package have different file permissions
compared to before.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:09 -05:00
Sunil Mohan Adapa 54f447785d doc: Install man1 page using Makefile
- Also fix a typo with target name.

- Remove redundant OUTPUT= declarations.

- Make sure that 'manual-pages' PHONY target is not attempted to be removed on
clean.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:04 -05:00
Sunil Mohan Adapa e50cab3402 doc: Fail when downloading images from Debian wiki fails
Fixes: #2173.

When a wget process fails to download an image from Debian wiki for any reason,
fail the whole fetching process so that the users notices it and reruns the
process. Earlier, these were failing silently leading to zero sized images.

Tests:

- Without the change, notice that when wget process is killed during fetching of
images, it leads to incorrect image files (partially downloaded or zero sized
files).

- With or without the changes, killing wget process at other times leads to
fetch process halting indicating that wget in normal cases fails correctly.

- With the change, killing the wget process will lead to an error and the
fetching process stops.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-23 09:03:54 -05:00
Sunil Mohan Adapa 514a04d643 doc: Before fetching, drop all old to cleanup deleted pages/images
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-09-28 16:42:32 -04:00
Sunil Mohan Adapa 95c99bf3ce doc: wikiparser: Reduce build verbosity
- Make begin and end markers the default values in the wikiparser arguments so
that they don't have to passed in every time.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-09-09 01:56:31 -07:00
Sunil Mohan Adapa 099d877b8f doc: wikiparser: Make it easier to run with a #! at the top
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-09-09 01:56:28 -07:00
Sunil Mohan Adapa 4f8f5b5c31 doc: Simplify make file by eliminating targets for intermediates
- Also merge the way main xml is generated with individual xml page generation.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-08-28 12:10:35 -04:00
Sunil Mohan Adapa 7c7f71224f doc: wikiparser: Incorporate post processing fixes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-08-28 12:10:33 -04:00
Sunil Mohan Adapa 09dd1e89e4 doc: Drop post processor as it is not needed anymore
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-08-28 12:10:30 -04:00
Sunil Mohan Adapa e947e99af3 doc: wikiparser: When processing single pages, ignore header/footer
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-08-28 12:09:30 -04:00
Sunil Mohan Adapa f628a3ed0b doc: Recompile when parser script changes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-08-28 12:09:21 -04:00
James Valleroy 5d80ba1262 doc: Use Makefile to fetch raw wiki files
- Fetch all pages included in manual
- Also fetch pages with + in name
- Generate raw xml from raw wiki files
- Don't fetch raw xml for manual pages
- Delete manual raw xml at end of fetch
- Iterate manual pages over raw wiki files instead of raw xml
- Skip remove-footer step for generated manual xml pages

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: Don't remove intermediate targets during build]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-08-28 12:09:08 -04:00
Sunil Mohan Adapa 172f5f3160 debian: Separate binary packages for each language manual
- When there are multiple binary packages, a common practice is to install into
  debian/tmp using the Makefile and then use dh_install and .install files. This
  splits the contents installed into debian/tmp to various package directories
  debian/{package}.

- Install documentation in to /usr/share/freedombox instead of
  /usr/share/doc/freedombox. Then create a link to /usr/share/doc/freedombox/.
  This approach is recommended Debian Policy Manual in section 12.3[1] because
  it should safe for administrator to delete files in /usr/share/doc safely
  without breaking the application functionality. The doc-base must refer to the
  documentation in /usr/share/doc as per doc-base documentation.

Links

1) https://www.debian.org/doc/debian-policy/ch-docs.html#additional-documentation

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-25 17:52:22 -04:00
Sunil Mohan Adapa 07180c2309 *: Update misc build related files to use SPDX license identifier
These files are not installed on the system and don't end up in the Debian
package. They pose not threat of causing a configuration file prompt.

Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-02-19 14:40:12 +02:00
Sunil Mohan Adapa 7354277e58 doc: Fix unavailability of manual images
Closes: #1688.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2019-11-14 21:32:29 +05:30
Sunil Mohan Adapa 78839173fd doc: Fetch and add Spanish manual
This is simply:

- Add es to languages list

- mkdir doc/manual/es

- make -C doc fetch

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:25:12 -04:00
Sunil Mohan Adapa 8734d96ce9 doc: Install using makefile instead of setup.py
- Prevent unnecessary copying and shipping of .xml files.

- Run multiple jobs concurrently to speed up the process.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:25:09 -04:00
Joseph Nuthalapati d62463247f doc: Move English manual to manual/en directory
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil@medhas.org Have common top level makefile for building manual]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:25:02 -04:00
Joseph Nuthalapati f475a94581 doc: Minor cosmetic changes
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:59 -04:00
Joseph Nuthalapati 004ba5b3ea doc: Move build scripts into separate directory
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:57 -04:00
Joseph Nuthalapati 46b587196f doc: Fix Unicode issues with the manual
docbook2html generates HTML4 documents and can't handle utf-8 input. It is quite
outdated. Switch to using stylesheets from docbook-xsl package instead.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil@medhas.org Remove intermediary file docbook.css]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:52 -04:00
Joseph Nuthalapati 853c056018 doc: Skip empty lines when piping to wget
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:49 -04:00
Joseph Nuthalapati 4064d6e231 manual: Link to manual from each service
Closes #930

- Make targets to download wiki pages of each service

- Add post-processor script for DocBook file processing

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-03-22 19:49:14 -04:00
Sunil Mohan Adapa fe8536df8a doc: Fix generation of HTML fragment
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-03-08 18:12:37 +01:00
Sunil Mohan Adapa dea4af17fb Rename Plinth to FreedomBox in license headers
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-02-16 20:10:09 -05:00
Sunil Mohan Adapa 77f08675a4 doc: Ability to debug documentation generation 2016-05-21 14:24:31 -04:00
James Valleroy ec687bcadc Use docbook2html for html manual.
There were some characters that xmlto wasn't handling correctly.
2016-02-15 10:35:47 -05:00
Sunil Mohan Adapa 6fe8c4213d doc: Re-write proper manual page 2015-09-27 09:49:45 -04:00
Sunil Mohan Adapa 17a267513e doc: First revision of the FreedomBox Manual
- Fetched using the Makefile and processed using XSLTs.
2015-09-27 09:49:45 -04:00
Sunil Mohan Adapa ef2d3a4787 doc: Fetch manual from the Wiki
- Already reorganised the manual page on the wiki for this purpose.

- Fix several issues with the Docbook export of MoinMoin.

  - Replace / in title with a space.

  - Remove revision history.

  - Convert image dimensions to points from pixels.

  - Fix incorrect wiki paths.

- Implement mechnism for downloading images and using them with
  relative paths.

- Remove the old way of compiling the manual.  Its contents are mostly
  not applicable for end users.  Design documents are outdated.  INSTALL
  and HACKING talk about Plinth installation not FreedomBox in general.
  A fresh man page will be written later.
2015-09-27 09:49:45 -04:00
Sunil Mohan Adapa eb89f9fa80 doc: Remove themes.mdwn
Its information is merged into the online Developer Manual which will be
imported here.
2015-09-27 09:49:45 -04:00
Sunil Mohan Adapa b4443330fb doc: Remove modules.mdwn
Its information is merged into the online Developer Manual which will be
imported here.
2015-09-27 09:49:45 -04:00
Sunil Mohan Adapa 3ba786275e doc: Remove scripts.mdwn
Its information is merged into the online Developer Manual which will be
imported here.
2015-09-27 09:49:44 -04:00
Sunil Mohan Adapa 9bee07f1a4 doc: Remove colophon that is no applicable
We are going to introduce the Developer Manual that may contain this
section and is composed differently that what Colophon talks about.
2015-09-27 09:49:44 -04:00
Sunil Mohan Adapa bb892e5ef9 doc: Remove FAQ page, it is fully outdated 2015-09-27 09:49:44 -04:00
Sunil Mohan Adapa af0d7285ca doc: Remove TODO file favoring central list
The generated TODO file is very limted in scope and gives a wrong
impression to a potential contributor.  We have worked towards a central
TODO list for the entire project scrapping all other TODO lists.
Redirect the contributor to that list.
2015-09-27 09:49:44 -04:00
Sunil Mohan Adapa f6b2d1e44b Don't generate TODO list from build/ and debian/ dirs 2015-01-13 13:00:40 +05:30
Sunil Mohan Adapa b179331f49 Remove empty header and footer documentation files
These cause lintain warning during Debian package building.  They
currently don't serve any purpose as they are empty.  They can be
re-added when they have some content.
2015-01-13 12:25:26 +05:30
Sunil Mohan Adapa 76717a6f08 Remove style.css to avoid unsafe links
Documentation shown inside Plinth is not effected by this as it includes
its own styling.  Documentation that is opened by user directly from
/usr/share/doc/plinth is effected.
2015-01-13 12:25:26 +05:30
Sunil Mohan Adapa 90203986f2 Remove modules 'expert_mode' and 'lib'.
The login/logout URLs are now in the 'users' module.
2014-12-14 17:26:05 +05:30
Sunil Mohan Adapa c62f0cfa72 Update README 2014-08-31 18:28:43 +05:30
Sunil Mohan Adapa ddb3b0f2c2 Use setup.py instead of Makefile 2014-08-31 13:11:27 +05:30
Sunil Mohan Adapa 90f1b52f49 Fix and generalize generating TODO list from source files 2014-08-29 12:13:33 +05:30
Sunil Mohan Adapa 38ea536ee3 Update a comment in makefile about modified help pages path 2014-08-17 19:45:27 +05:30
Sunil Mohan Adapa 7e16b74718 Remove steps for compiling templates 2014-05-04 16:07:48 +05:30
James Valleroy 3a696e0bb9 Fix check for already existing username in add_user. Add documentation of process for storing and validating hashed passwords. 2013-11-11 07:31:53 -06:00
James Vasile 32e985eab7 make clean should take tex files and pdfs too. 2011-09-30 00:51:41 -04:00
James Vasile 78d8ac5ff0 Remove roadmap and design as they have no place in this package. 2011-09-29 23:19:52 -04:00
James Vasile 14a7a21536 latex and pdf files are optional targets, not default 2011-03-09 17:24:31 -05:00