Changes between Version 9 and Version 10 of DjangoSpecifications/Docs/ConvertingRestToOtherFormats
- Timestamp:
- Mar 20, 2008, 7:16:47 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DjangoSpecifications/Docs/ConvertingRestToOtherFormats
v9 v10 5 5 This is useful for both offline documentation '''and''' reading branch documentation that is usually not available on the web. 6 6 7 #528 is a long-standing ticket that has a basic implementation. A better (perhaps?) approach is proposed below.7 #528 is a long-standing ticket that has a basic implementation. A better (perhaps?) approach with a working implementation is proposed below. 8 8 9 9 '''NOTE THAT CSS COPYRIGHT ISSUES NEED TO BE SOLVED BEFORE THIS CAN BE MERGED.''' The CSS is Copyright (c) 2005 Lawrence Journal-World. Perhaps it can be shared at least with a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License? … … 15 15 Generating offline documentation should work as follows: 16 16 * there is a command '''builddocs''' that can be called from either `django-admin.py` or `manage.py` 17 * that produces multiple-page HTML output from the docs by default, but accepts the option `--single` to produce single-page output 17 * that produces multiple-page HTML output from the docs by default, but accepts the option `--single` to produce single-page output [DONE] 18 18 * PDF generation is less important, but should be implemented eventually, see http://code.google.com/p/rst2pdf (rather than pisa from http://www.htmltopdf.org/ as proposed in #528/#6443) 19 19 * the converter tries to make the documentation look similar to web docs by 20 * using (a subset of) the Django official CSS http://media.djangoproject.com/css/homepage.css (discuss copyright issues) 21 * using the customized docutils classes from source:djangoproject.com/django_website/apps/docs/builder.py 22 * the inter-page links should be converted to make them work properly (by extending the docutils classes) 20 * using (a subset of) the Django official CSS http://media.djangoproject.com/css/homepage.css (discuss copyright issues) [DONE] 21 * using the customized docutils classes from source:djangoproject.com/django_website/apps/docs/builder.py [DONE] 22 * the inter-page links should be converted to make them work properly (by extending the docutils classes) [DONE] 23 23 * less important: external images from http://media.djangoproject.com/img/doc/ can be retrieved and image links converted accordingly (`--with-images` option perhaps?) 24 24 25 25 == Implementation == 26 26 27 The proposal has been mostly implemented, though neither inter-page links nor images have been dealt with.27 The proposal has been implemented, inter-page links and table of contents work. Images have not been dealt with, I doubt if they are worth the trouble. CSS images are another thing though, but they are trivial to add, only copyright issues need to be sorted out. 28 28 29 29 Usage: