Example:
$ hg log --style ./hgstyle -v > changelog.rst
| #!/usr/bin/env python | |
| import inspect | |
| class switch(object): | |
| def __init__(self, args): | |
| self.args = args | |
| def __call__(self, cls): | |
| cls(self.args) |
| import System.Environment | |
| dispatch :: String -> [String] -> IO () | |
| dispatch "cmd1" = cmd1 | |
| main = do | |
| (command:argList) <- getArgs | |
| dispatch command argList | |
| cmd1 :: [String] -> IO () |
| import random | |
| import types | |
| from collections import OrderedDict | |
| class Roulette(object): | |
| random = random.random | |
| def __init__(self, pool): | |
| self.pool = pool |
| import multiprocessing | |
| class IWorker(object): | |
| """Worker interface. Just for documentation.""" | |
| def __init__(self, *args, **kw): | |
| pass | |
| def __call__(self, item): | |
| pass |
| # put it into your conf.py | |
| def setup(app): | |
| # disable versioning for speed | |
| from sphinx.builders.gettext import I18nBuilder | |
| I18nBuilder.versioning_method = 'none' | |
| def doctree_read(app, doctree): | |
| if not isinstance(app.builder, I18nBuilder): | |
| return | |
| from docutils import nodes |
Example:
$ hg log --style ./hgstyle -v > changelog.rst
| # -*- coding: utf-8 -*- | |
| from docutils import nodes | |
| from sphinx import addnodes | |
| import sphinx.ext.refcounting | |
| IGNORE_NODES = ( | |
| # comment | |
| nodes.comment, |
| # -*- coding: utf-8 -*- | |
| import re | |
| import polib | |
| import functools | |
| def fix_poentry_unicode(): | |
| unicode_func = polib.POEntry.__unicode__ | |
| def wrapper(self, wrapwidth=78): |
/etc/fonts/conf.d/29-language-selector-ja-jp.conf を削除した
https://answers.launchpad.net/ubuntu/+source/firefox/+question/213753 の手順を試したが解決せず