Commit Graph

490 Commits

Author SHA1 Message Date
Takeshi KOMIYA
18dfe37f8c Enable text_add_secnumbers by default (refs: #4218) 2018-01-15 00:37:32 +09:00
Takeshi KOMIYA
b688941b09 Merge branch 'master' into feature-text-secnumbers 2018-01-15 00:21:50 +09:00
Antoine Beaupré
90f7c7ef3f add link to manpages in HTML builder
It is useful to have the HTML documentation builder actually link to
real rendered versions of HTML manpages in its output. That way people
can click on manpages to get the full documentation. There are a few
services offering this online, so we do not explicitly enable one by
default, but the Debian manpages repository has a lot of the manpages
pre-rendered, so it is used as an example in the documentation.

The parsing work is done by a transformer class that parses manpage
objects and extract name/section elements. Those then can be used by
writers to cross-reference to actual sites. An implementation is done
in the two HTML writers, but could also apply to ePUB/PDF writers as
well in the future.

This is not enabled by default: the `manpages_url` configuration item
needs to be enabled to point to the chosen site. The `page`, `section`
and `path` parameters are expanded through Python string formatting in
the URL on output.

Unit tests are fairly limited, but should cover most common use-cases.
2018-01-11 13:20:34 -05:00
Takeshi KOMIYA
d9ae68b2ee Merge branch 'stable' 2018-01-07 12:16:17 +09:00
jfbu
bd139453c9 Move SphinxSmartQuotes transform to SphinxStandaloneReader
closes #4142
closes #4357
closes #4359
refs: #3967

Adds ``smartquotes``, ``smartquotes_action``, ``smartquotes_excludes``
configuration variables.

- if ``smartquotes`` is set to False, then Smart Quotes transform is not
  applied even if a Docutils configuration file activates it,

- the current default of ``smartquotes_excludes`` deactivates Smart
  Quotes for Japanese language, and also for the ``man`` and ``text``
  builders.

  However, currently ``make text html`` deactivates Smart Quotes for
  ``html`` too, and ``make html text`` activates them for ``text`` too,
  because the picked environment is shared and already transformed.

- now Smart Quotes get applied also when source documents are in
  Markdown or other formats.
2018-01-05 15:06:10 +01:00
Stephen Finucane
f048d668e5 doc: Remove invalid note for epub3 builder
This doesn't appear to be true any more, based on the code.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-28 21:28:55 +00:00
jfbu
7ea4fa535a Make LaTeX obey numfig_secnum_depth for figures, tables, code-blocks
Notes:

- also fixes #4314

- although numbering of figures, tables and code-blocks will be same as
  in html, due to issue #4318 the numbering of enclosing sectioning units
  themselves may go deeper in html than PDF via latex. But this commit
  makes sure numbering goes to minimal depth needed by numfig_secnum_depth
2017-12-20 23:27:39 +01:00
jfbu
0a66d51cbc Merge branch 'stable' 2017-12-20 21:52:45 +01:00
Takeshi KOMIYA
7054c0306a doc: Remove mentions to deprecated options (both are removed at 8c2fabe v1.3) 2017-12-20 10:43:13 +09:00
jfbu
72bffcf0f4 Add precision to docs of latex_toplevel_sectioning 2017-12-18 11:20:07 +01:00
jfbu
fcbabcd9b5 Merge branch 'stable'
Conflicts:
	sphinx/apidoc.py
	sphinx/application.py
	sphinx/quickstart.py

	modified:   CHANGES
	modified:   doc/config.rst
	modified:   doc/markup/inline.rst
	modified:   sphinx/application.py
	modified:   sphinx/builders/__init__.py
	modified:   sphinx/cmd/quickstart.py
	modified:   sphinx/ext/apidoc.py
2017-12-18 10:13:49 +01:00
jfbu
46b1896228 Again rewording docs about numfig_secnum_depth 2017-12-17 17:56:03 +01:00
jfbu
f780f92d1b Mention `:numbered:` needed in numfig_secnum_depth docs 2017-12-16 11:32:40 +01:00
jfbu
070fbb97e5 Add markup and clarify numfig_secnum_depth docs 2017-12-16 11:05:33 +01:00
Matthew Woodcraft
6b15c9c1c7 #3998: Add optional section numbering in plain text output
Controlled by new config values: text_add_secnumbers and
text_secnumber_suffix.
2017-11-05 22:51:38 +00:00
Takeshi KOMIYA
f46c91b652 Merge branch 'stable' 2017-11-02 00:49:10 +09:00
Takeshi KOMIYA
79df05b36d Revert "Add :confval:smart_quotes to disable smart quotes through `conf.py` (refs: #4142)"
This reverts commit bfd39c12b2.
2017-11-01 22:43:40 +09:00
jfbu
9701c236d4 Trim docs/config.rst now that new config setting smart_quotes exists 2017-10-31 20:31:56 +01:00
jfbu
4b3d41c855 Fix typo in doc/config.rst 2017-10-31 20:30:32 +01:00
Takeshi KOMIYA
9ac68edced Merge pull request #4178 from tk0miya/deprecate_string_for_html_sidebars
a single string value for ``html_sidebars`` will be deprecated in 2.0
2017-10-31 10:37:04 +09:00
Takeshi KOMIYA
83c266aa2e using a string value for `html_sidebars` will be removed in 2.0 2017-10-30 13:41:57 +09:00
Takeshi KOMIYA
bfd39c12b2 Add :confval:smart_quotes to disable smart quotes through `conf.py` (refs: #4142) 2017-10-27 00:45:06 +09:00
Takeshi KOMIYA
47049ce5f6 Merge branch 'master' into improve_theme_sidebars 2017-10-25 23:53:44 +09:00
Takeshi KOMIYA
7e7b389eed Merge branch 'stable' 2017-10-23 12:23:58 +09:00
jfbu
90e3425ed7 Fix #4149: Documentation: Help choosing latex_engine 2017-10-22 11:45:28 +02:00
Takeshi KOMIYA
b78f3090a0 HTML themes can set up default sidebars through `theme.conf` 2017-10-22 15:14:02 +09:00
Takeshi KOMIYA
134f3b1884 Merge branch 'stable' 2017-10-21 01:50:50 +09:00
jfbu
5dbfc43dda Make clearer that Sphinx applies Smart quotes by default
modified:   doc/config.rst
2017-10-19 10:00:08 +02:00
jfbu
6a897af1d9 Clarify docs about `html_use_smartypants` deprecation 2017-10-19 09:56:14 +02:00
jfbu
77c5aaaa97 Fix #4134: [doc] docutils.conf is not documented explicitly 2017-10-19 09:23:41 +02:00
Takeshi KOMIYA
1292089255 Close #1448: qthelp: Add new config value; qthelp_namespace 2017-10-08 23:22:56 +09:00
Takeshi KOMIYA
2839fc5f68 Update docs (refs: #1448) 2017-10-08 13:15:43 +09:00
Julien Schueller
21ec11e1a7 Document qthelp configuration 2017-10-02 17:26:21 +02:00
Takeshi KOMIYA
d65c5c4ed8 Merge branch 'master' into 3866_suppress_pydomain_ref_warning 2017-07-17 17:42:23 +09:00
Takeshi KOMIYA
007593fa81 Merge branch 'stable' 2017-07-02 20:28:50 +09:00
Yoshiki Shibukawa
f0766ce4cd fix #3840: epub_uid should be XML Name 2017-06-30 23:37:32 +09:00
Takeshi KOMIYA
db88166a3f Fix #3866: Suppress a new warning type: python refs 2017-06-17 11:34:43 +09:00
Sanjeev Gupta
1a62b629c5 Test URLs and convert to HTTPS where possible 2017-05-31 22:07:01 +08:00
jfbu
e277cb7285 Merge branch '1.6-release'
Fixed conflicts:
	tests/test_build_html5.py

Also updated tests/test_build_latex.py
2017-05-11 11:45:14 +02:00
jfbu
ad7d2bd548 Fix typo 2017-05-11 10:25:49 +02:00
jfbu
e20f28ce70 Improve latex docs of `latex_use_latex_multicolumn` config setting 2017-05-11 10:24:10 +02:00
Takeshi KOMIYA
b27fbc4aa5 Remove html_use_smartypants (deprecated) 2017-05-03 17:27:32 +09:00
Takeshi KOMIYA
354e360783 Merge pull request #3677 from tk0miya/remove_deprecated_features_in_1.7
Remove deprecated features in 1.7
2017-05-03 17:10:16 +09:00
Takeshi KOMIYA
72e635c775 Merge branch '1.6-release' 2017-04-29 23:51:29 +09:00
Takeshi KOMIYA
361a34257b Remove deprecated feature: latex_keep_old_macro_names 2017-04-27 21:49:19 +09:00
Aaron Carlisle
458d1487b2 From Review: Fix typos 2017-04-26 12:59:49 -04:00
Aaron Carlisle
f92523751e Docs: Add seealso message to config page leading to api docs
While hanging around IRC in both #sphinx-doc and #readthedocs
I have found that a lot of people do not know about these options
even though a lot of theme are pretty common. For example,
adding a simple theme overide, most people will edit layout.html
instead of Sphinx.add_stylesheet.
2017-04-26 11:53:08 -04:00
Dmitry Shachnev
9236beb9ee Deprecate the html_use_smartypants option 2017-04-25 14:17:30 +03:00
Takeshi KOMIYA
ebdec70dfc Support images in Data URI on non-HTML builders 2017-04-19 01:40:49 +09:00
Takeshi KOMIYA
a5d77a8f06 Drop warning for nonlocal image URI 2017-04-19 01:40:17 +09:00