- Sep 30, 2015
-
-
Matt Mackall authored
-
- Sep 26, 2015
-
-
Yuya Nishihara authored
This is necessary to hide DEPRECATED items conditionally. Flagged as API change because it will break "hg help git|subversion".
-
- Sep 27, 2015
-
-
Yuya Nishihara authored
ui attributes will be required by a help function, so a file object can't be used as a fake ui.
-
Yuya Nishihara authored
Future patches will require ui module to be passed to a help function, so let's use it where appropriate. Additional parens are necessary to silence a check-code warning.
-
Yuya Nishihara authored
This is intended to narrow scope of local variables. The global _verbose flag will be replaced later by ui.verbose.
-
Yuya Nishihara authored
-
- Sep 08, 2015
- Jan 18, 2015
-
-
Mads Kiilerich authored
-
- Jun 23, 2014
- Mar 11, 2014
-
-
Katsunori FUJIWARA authored
Before this patch, short description of each commands is not shown in generated documents (HTML file and UNIX man page). This omitting may prevent users from understanding about commands. This patch show it as the 1st paragraph in the help section of each commands. This style is chosen because: - showing it as the section title in "command - short desc" style disallows referencing by "#command" in HTML file: in "en" locale, hyphen concatenated title is used as the section ID in HTML file for this style - showing it as the 1st paragraph in "command - short desc" style seems to be redundant: "command" appears also just before as the section title - showing it just after synopsis like "hg help command" seems not to be reasonable in UNIX man page This patch just writes short description ("d['desc'][0]") before "::", because it should be already "strip()"-ed in "get_desc()", or empty string for the command without description.
-
- Feb 20, 2014
-
-
Simon Heimberg authored
gendoc.py did not handle the hanging indentation for descriptions. Work around this by joining all in one single line (same as in minirst since previous patch). This problem occurred when translations of option lines were very long. Do not bother the translators with this detail. On a long option description, the translator continued on a new line as usual. gendoc.py created invalid rst syntax like this: -o, --option Description line 1 description line 2 The new output is: -o, --option Description line 1 description line 2 The lines could theoretically become very long, but line breaking is handled when generating the final documentation.
-
- Nov 08, 2013
-
-
Katsunori FUJIWARA authored
Before this patch, HTML/man pages generated by docutils don't show details of each command options, whether it should take argument or not for example, even though "hg help" does. This patch shows details of command options as same as "hg help" shows. This patch uses "--option <VALUE[+]>" style instead of "--option <VALUE> [+]" used in output of "hg help", because docutils requires that option argument strings starts with "<" and ends with ">".
-
- Jul 19, 2013
-
-
Matt Mackall authored
-
- Jul 03, 2013
-
-
Takumi IINO authored
Allow overwrite LANGUAGE and LC_ALL make variables, for make i18n man and html. After this patch, we can make i18n man and html by following command: $ make clean all LANGUAGE=ja
-
Takumi IINO authored
Before this patch, man and html are english only, and there sources are not translatable. This patch make translatable all documents.
-
Takumi IINO authored
Before this patch, gendoc.py only prints hg.1.gendoc.txt content. This adds any content print function.
-
Takumi IINO authored
This function prints any topic.
-
Takumi IINO authored
This function prints hg.1.gendoc.txt content.
-
- Jul 01, 2013
-
-
Simon Heimberg authored
-
- Jun 12, 2013
-
-
Simon Heimberg authored
detected by pyflakes
-
- Jun 20, 2013
-
-
Matt Mackall authored
Spotted by Eric S. Raymond.
-
- May 15, 2013
-
-
Takumi IINO authored
This will be used in an upcoming patch.
-
Takumi IINO authored
Before this patch, commnd __doc__ and extension __doc__ are not translatable. But other messages, like doc of helptalbe, section headers, are translatable. This patch makes commnd __doc__ and extension __doc__ translatable.
-
- Apr 17, 2013
-
-
Mads Kiilerich authored
Better do it once than see random changes in diffs later.
-
- Apr 14, 2013
-
-
Mads Kiilerich authored
-
- Feb 10, 2013
-
-
Dan Villiom Podlaski Christiansen authored
...for prettier HTML!
-
- Dec 09, 2012
-
-
Mads Kiilerich authored
The check pattern only checked for whitespace between keyword and operator. Now it also warns: > x = f(),7 missing whitespace after , > x = f()+7 missing whitespace in expression
-
- Aug 13, 2012
-
-
Katsunori FUJIWARA authored
This patch adds "doc/check-seclevel.py" which checks below in help documents: - whether unknown or unavailable section marks are used or not - whether appropriate section mark is used at sub-sectioning It should be invoked in "doc" directory. It checks all help documents of Mercurial (topics, commands, extensions), if no file is specified by --file option. With --file option, it checks contents of the specified file as help document, for self testing purpose: -t/-c/-e/-C are used to specify what kind of help document contents of the specified file is. This checking is related to changeset 979b107eaea2.
-
- Aug 17, 2012
- Jul 25, 2012
-
-
Katsunori FUJIWARA authored
Some help topics use "-" for the top level underlining section mark, but "-" is used also for the top level categorization in generated documents: "hg.1.html", for example. So, TOC in such documents contain "sections in each topics", too. This patch changes underlining section mark in some help topics to unify section level in generated documents. After this patching, levels of each section marks are: level0 """""" level1 ====== level2 ------ level3 ...... level4 ###### And use of section markers in each documents are: - mercurial/help/*.txt can use level1 or more (now these use level1 and level2) - help for core commands can use level2 or more (now these use no section marker) - descriptions of extensions can use level2 or more (now hgext/acl uses level2) - help for commands defined in extension can use level4 or more (now "convert" of hgext/convert uses level4) "Level0" is used as top level categorization only in "doc/hg.1.txt" and the intermediate file generated by "doc/gendoc.py", so end users don't see it in "hg help" outoput and so on.
-
- May 12, 2012
-
-
Brodie Rao authored
-
Brodie Rao authored
-
- May 08, 2012
-
-
Nikolaj Sjujskij authored
Since docutils 0.9, `roman` module has been moved from module directory root (i.e. `site-packages/roman.py`) to `docutils.utils` module. Therefore `import roman` statement should be wrapped in `try: ... except ImportError: ...` block to handle importing correctly.
-
- Apr 30, 2012
-
-
Martin Geisler authored
I sometimes look at a piece of software and if the man page says "Copyright 2004", then I'm inclined to think that the project is stale or that the authors are lazy. Neither is good publicity for us :-)
-
- Dec 06, 2011
-
-
Olav Reinert authored
-
- Oct 20, 2011
-
-
Martin Geisler authored
Peter Toft told me he had installed a 'python-doc' package instead of the correct 'python-docutils' and he suggested that we add the URL to Docutils in our error message.
-
- Jul 25, 2011
-
-
Augie Fackler authored
-