Skip to content

Install sphinx configuration and extensions - #33

Merged
eteq merged 2 commits into
astropy:masterfrom
mdboom:sphinx-centralized
Oct 26, 2011
Merged

eteq merged 2 commits into
astropy:masterfrom
mdboom:sphinx-centralized

Conversation

@mdboom

@mdboom mdboom commented Oct 25, 2011

Copy link
Copy Markdown
Contributor

It's important to keep the settings used to build the core astropy docs and the affiliated packages in sync to ease the inclusion of affiliated packages in the core later on, and to ensure a consistent look across these packages. Also, distributing bugfixes in the extensions, or updating them when Numpy does, is much easier to do in one place.

This suggestion came about in response to how the affiliated package template layout was proposed here:

astropy/package-template#1

@embray

embray commented Oct 25, 2011

Copy link
Copy Markdown
Member

+1

@astrofrog

Copy link
Copy Markdown
Member

I initially was worried that this would require astropy to be installed to build the docs, but this will be necessary anyway once we use things like autosummary and automodule.

Looks good to me!

Comment thread docs/conf.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the rst_epilog is already defined in astropy.sphinx.conf ... so perhaps the astropy-specific one should be

 # rst_epilog is added to the end of RST files - a good place to put substitutions to
 # be used globally. astropy.sphix.conf already defines some substitutions like
 # _Astropy: include here only substitutions that are unlikely to be used in 
 # affiliated packages
rst_epilog = rst_epilog+"""
"""

@eteq

eteq commented Oct 26, 2011

Copy link
Copy Markdown
Member

Other than that one small bit about the rst_epilog, this looks great to me.

…". This means that both the core astropy doc build and affiliated packages will use the same extensions and configuration options, and affiliated packages do not need to be updated when doc settings and extensions need to change.
eteq added a commit that referenced this pull request Oct 26, 2011
Move sphinx doc-building extensions and (part of) conf.py into the source tree to allow affiliated packages to access them.
@eteq
eteq merged commit 2da99f8 into astropy:master Oct 26, 2011
mhvk pushed a commit to mhvk/astropy that referenced this pull request Jul 17, 2013
…dle-output

Allow (nearly all) in-place calculations, update tests, cleanup
keflavich pushed a commit to keflavich/astropy that referenced this pull request Oct 9, 2013
Move sphinx doc-building extensions and (part of) conf.py into the source tree to allow affiliated packages to access them.
@mdboom
mdboom deleted the sphinx-centralized branch May 21, 2014 23:56
embray pushed a commit to embray/astropy that referenced this pull request Jan 23, 2015
Fix astropy#2418 -- fix crash in smart_resolver when lookup fails
astrofrog pushed a commit to astropy/sphinx-automodapi that referenced this pull request Jan 27, 2018
Move sphinx doc-building extensions and (part of) conf.py into the source tree to allow affiliated packages to access them.
astrofrog pushed a commit to astropy/sphinx-astropy that referenced this pull request Jan 29, 2018
Move sphinx doc-building extensions and (part of) conf.py into the source tree to allow affiliated packages to access them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants