Skip to content

Commit 347cdcf

Browse files
authored
DOC: Fix What's New for 7.0 and bad intersphinx, remove astropy-dev tag (astropy#16646)
* DOC: Fix What's New for 7.0 * Change the rest of astropy remote to upstream and thus finally fixing GH Issue 11383 . Also fix intersphinx and remove astropy-dev intersphinx tag. * git_resources no longer orphaned and remove TODO note on that page not meant for users' eyes. [ci skip]
1 parent c1f97c3 commit 347cdcf

12 files changed

Lines changed: 47 additions & 58 deletions

File tree

astropy/coordinates/builtin_frames/icrs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ class ICRS(BaseRADecFrame):
1919
very close (within tens of milliarcseconds) to J2000 equatorial.
2020
2121
For more background on the ICRS and related coordinate transformations, see
22-
the references provided in the :ref:`astropy:astropy-coordinates-seealso`
22+
the references provided in the :ref:`astropy:astropy-coordinates-seealso`
2323
section of the documentation.
2424
"""

astropy/modeling/parameters.py

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -121,21 +121,19 @@ class Parameter:
121121
This class represents a model's parameter (in a somewhat broad sense). It
122122
serves a number of purposes:
123123
124-
1) A type to be recognized by models and treated specially at class
125-
initialization (i.e., if it is found that there is a class definition
126-
of a Parameter, the model initializer makes a copy at the instance level).
127-
128-
2) Managing the handling of allowable parameter values and once defined,
129-
ensuring updates are consistent with the Parameter definition. This
130-
includes the optional use of units and quantities as well as transforming
131-
values to an internally consistent representation (e.g., from degrees to
132-
radians through the use of getters and setters).
133-
134-
3) Holding attributes of parameters relevant to fitting, such as whether
135-
the parameter may be varied in fitting, or whether there are constraints
136-
that must be satisfied.
137-
138-
124+
#. A type to be recognized by models and treated specially at class
125+
initialization (i.e., if it is found that there is a class definition
126+
of a Parameter, the model initializer makes a copy at the instance level).
127+
128+
#. Managing the handling of allowable parameter values and once defined,
129+
ensuring updates are consistent with the Parameter definition. This
130+
includes the optional use of units and quantities as well as transforming
131+
values to an internally consistent representation (e.g., from degrees to
132+
radians through the use of getters and setters).
133+
134+
#. Holding attributes of parameters relevant to fitting, such as whether
135+
the parameter may be varied in fitting, or whether there are constraints
136+
that must be satisfied.
139137
140138
See :ref:`astropy:modeling-parameters` for more details.
141139

docs/conf.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@
111111
# add any custom intersphinx for astropy
112112
intersphinx_mapping.update(
113113
{
114-
"astropy-dev": ("https://docs.astropy.org/en/latest/", None),
115114
"pyerfa": ("https://pyerfa.readthedocs.io/en/stable/", None),
116115
"pytest": ("https://docs.pytest.org/en/stable/", None),
117116
"ipython": ("https://ipython.readthedocs.io/en/stable/", None),
@@ -385,29 +384,22 @@ def rstjinja(app, docname, source):
385384
source[0] = rendered
386385

387386

388-
def resolve_astropy_and_dev_reference(app, env, node, contnode):
387+
def resolve_astropy_reference(app, env, node, contnode):
389388
"""
390-
Reference targets for ``astropy:`` and ``astropy-dev:`` are special cases.
389+
Reference targets for ``astropy:`` are special cases.
391390
392391
Documentation links in astropy can be set up as intersphinx links so that
393392
affiliate packages do not have to override the docstrings when building
394393
the docs.
395394
396-
If we are building the development docs it is a local ref targeting the
397-
label ``astropy-dev:<label>``, but for stable docs it should be an
398-
intersphinx resolution to the development docs.
399-
400-
See https://github.com/astropy/astropy/issues/11366
401395
"""
402396
# should the node be processed?
403397
reftarget = node.get("reftarget") # str or None
404398
if str(reftarget).startswith("astropy:"):
405399
# This allows Astropy to use intersphinx links to itself and have
406400
# them resolve to local links. Downstream packages will see intersphinx.
407-
# TODO! deprecate this if sphinx-doc/sphinx/issues/9169 is implemented.
401+
# TODO: Remove this when https://github.com/sphinx-doc/sphinx/issues/9169 is implemented upstream.
408402
process, replace = True, "astropy:"
409-
elif dev and str(reftarget).startswith("astropy-dev:"):
410-
process, replace = True, "astropy-dev:"
411403
else:
412404
process, replace = False, ""
413405

@@ -591,6 +583,6 @@ def setup(app):
591583
# Generate the page from Jinja template
592584
app.connect("source-read", rstjinja)
593585
# Set this to higher priority than intersphinx; this way when building
594-
# dev docs astropy-dev: targets will go to the local docs instead of the
586+
# docs astropy: targets will go to the local docs instead of the
595587
# intersphinx mapping
596-
app.connect("missing-reference", resolve_astropy_and_dev_reference, priority=400)
588+
app.connect("missing-reference", resolve_astropy_reference, priority=400)

docs/development/development_details.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,12 @@ branch from the development branch and applying your changes to your branch.
271271

272272
First, fetch the latest development astropy and go to your branch of interest::
273273

274-
git fetch astropy main
274+
git fetch upstream main
275275
git switch my-new-feature
276276

277277
Now, do the rebase::
278278

279-
git rebase astropy/main
279+
git rebase upstream/main
280280

281281
You are more likely to run into *conflicts* here — places where the changes you made
282282
conflict with changes that someone else made — than anywhere else. Ask for help if you
@@ -329,8 +329,8 @@ the GitHub pull request page. If this is not possible, we typically squash using
329329
rebase --interactive <https://git-scm.com/docs/git-rebase#_interactive_mode>`_. In
330330
particular, you can rebase and squash within the existing branch using::
331331

332-
git fetch astropy
333-
git rebase -i astropy/main
332+
git fetch upstream main
333+
git rebase -i upstream/main
334334

335335
The last command will open an editor with all your commits, allowing you to
336336
squash several commits together, rename them, etc. Helpfully, the file you are

docs/development/docguide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ the standard Astropy docstring format.
5353
When built in Astropy, links starting with 'astropy' resolve to the current
5454
build. In affiliated packages using the ``sphinx-astropy`` intersphinx mapping,
5555
the links resolve to the stable version of Astropy. For linking to the
56-
development version, use the intersphinx target 'astropy-dev'.
56+
development version, use direct URL linking.
5757

5858
* Examples and/or tutorials are strongly encouraged for typical use-cases of a
5959
particular module or class.
-9.27 KB
Binary file not shown.

docs/development/git_resources.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
:orphan:
2-
31
.. _git-resources:
42

5-
***************
3+
*************
64
Git Resources
7-
***************
5+
*************
86

97
Git is central to astropy development. While Git is undeniably complex and at times
108
inscrutable, in practice there is only a very small subset of commands that you will
119
need to know to make contributions to Astropy. This page provides Astropy-specific
1210
guidance to using Git along with a list of resources for learning more about Git.
1311

14-
**FIXME**: links in this page should be reviewed and trimmed to only the highest quality resources instead of just a grab-bag of links.
15-
1612
If you have never used git or have limited experience with it, take a few
1713
minutes to look at `Git Basics`_, part of a much longer `git book`_.
1814

@@ -136,7 +132,7 @@ If you want to work on some stuff with other people, where you are all
136132
committing into the same repository, or even the same branch, then just
137133
share it via GitHub.
138134

139-
First fork Astropy into your account, as from :ref:`fork_a_copy`.
135+
First fork Astropy into your account, as from :ref:`contributing.forking`.
140136

141137
Then, go to your forked repository GitHub page, e.g.,
142138
``https://github.com/your-user-name/astropy``
@@ -180,7 +176,7 @@ Rebasing on main
180176
=================
181177

182178
Let's say you thought of some work you'd like to do. You
183-
:ref:`fetch-latest` and :ref:`make-feature-branch` called
179+
``git fetch upstream --tags`` and :ref:`make-feature-branch` called
184180
``cool-feature``. At this stage main is at some commit, let's call it E. Now
185181
you make some new commits on your ``cool-feature`` branch, let's call them A,
186182
B, C. Maybe your changes take a while, or you come back to them after a while.

docs/development/index.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ Details
7373

7474
{%else%}
7575

76-
To read the full contributor documentation, you will need to go to the :ref:`latest
77-
developer version of the documentation
78-
<astropy-dev:developer-docs>`.
76+
To read the developer documentation, you will need to go to the
77+
`latest developer version of the documentation <https://docs.astropy.org/en/latest/development/index.html>`_.
7978

8079
{%endif%}

docs/development/maintainers/maintainer_workflow.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ the original pull request.
9595

9696
But let's say the author is okay with you taking over...
9797

98-
First, check out the ``astropy`` repository and :ref:`set_upstream_main`.
98+
First, :ref:`contributing.forking`.
9999
Now, you need to point a remote to the pull request author's fork.
100100
In this example, the author's username is ``octocat`` and the pull request
101101
branch name is ``cool-feature`` that is tied to pull request number 99999::

docs/development/maintainers/testhelpers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ Reference/API
7373
Astropy Test Runner
7474
===================
7575

76-
When executing tests with `astropy.test` the call to pytest is controlled
76+
When executing tests with ``packagename.test`` the call to pytest is controlled
7777
by the `astropy.tests.runner.TestRunner` class.
7878

7979
The `~astropy.tests.runner.TestRunner` class is used to generate the
80-
`astropy.test` function, the test function generates a set of command line
80+
``packagename.test`` function, the test function generates a set of command line
8181
arguments to pytest. The arguments to pytest are defined in the
8282
`~astropy.tests.runner.TestRunner.run_tests` method, the arguments to
8383
``run_tests`` and their respective logic are defined in methods of

0 commit comments

Comments
 (0)