23 import sphinx_rtd_theme
41 'sphinxcontrib.bibtex',
42 'sphinx.ext.githubpages'
46 templates_path = [
'_templates']
52 source_suffix =
'.rst'
62 project =
u'SourceXtractor++'
63 filename =
'sourcextractor'
64 copyright =
u'2019, GenevaU/LMU/CNRS/SorbonneU'
65 author =
u'SourceXtractor++ team'
86 today =
'Thu Jan 31 2019'
95 exclude_patterns = [
'global.rst',
'keys.rst',
'roles.rst']
117 pygments_style =
'sphinx'
126 todo_include_todos =
True
135 html_theme =
'sphinx_rtd_theme'
144 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
169 html_static_path = [
'../theme']
173 app.add_stylesheet(
"css/custom.css")
227 html_show_sourcelink =
False
231 html_show_sphinx =
False
265 htmlhelp_basename = filename +
'doc'
272 'papersize':
'a4paper',
280 'preamble':
'\usepackage{amssymb}',
291 (master_doc, filename +
'.tex', project +
u' Documentation',
311 latex_show_urls =
'footnote'
333 (master_doc, filename, project +
u' Documentation',
347 texinfo_documents = [
348 (master_doc, filename, project +
u' Documentation',
349 author, project,
'One line description of project.',
375 epub_publisher = author
376 epub_copyright = copyright
424 epub_exclude_files = [
'search.html']
456 intersphinx_mapping = {
'https://docs.python.org/':
None}
459 from pybtex.style.formatting.unsrt
import Style
as UnsrtStyle, date, pages, toplevel
461 from pybtex.plugin
import register_plugin
466 volume_and_pages = first_of [
471 optional[
'(', field(
'number'),
')'],
476 words [
'pages', pages],
479 optional_field(
'adsurl'),
480 join [
'http://arxiv.org/abs/', optional_field(
'eprint')],
481 optional_field(
'url'),
482 optional [join [
'http://dx.doi.org/', field(
'doi')]]
484 template = toplevel [
485 self.format_names(
'author'),
486 href [myurl, self.format_title(e,
'title')] \
487 if len(myurl.format_data(e)) > 0 \
488 else tag(
'strong') [self.format_title(e,
'title')],
489 sentence(capfirst=
False) [
490 tag(
'emph') [field(
'journal')],
491 optional[ volume_and_pages ],
493 sentence(capfirst=
False) [ optional_field(
'note') ],
495 return template.format_data(e)
499 optional_field(
'adsurl'),
500 optional [join [
'http://arxiv.org/abs/', field(
'eprint')]],
501 optional_field(
'url'),
502 optional [join [
'http://dx.doi.org/', field(
'doi')]]
504 template = toplevel [
505 sentence [self.format_names(
'author')],
506 href [myurl, self.format_title(e,
'title')] \
507 if len(myurl.format_data(e)) > 0 \
508 else tag(
'strong') [self.format_title(e,
'title')],
511 sentence(capfirst=
False) [
512 optional[ self.format_editor(e, as_sentence=
False) ],
513 self.format_btitle(e,
'booktitle', as_sentence=
False),
514 self.format_volume_and_series(e, as_sentence=
False),
517 self.format_address_organization_publisher_date(e),
519 sentence(capfirst=
False) [ optional_field(
'note') ],
521 return template.format_data(e)
523 register_plugin(
'pybtex.style.formatting',
'adsarxiv', ADSArxivStyle)