Skip to content

Commit 8a64491

Browse files
authored
Merge pull request #3461 from bsipocz/MAINT_fix_contentless_directives
2 parents a17bf41 + f5333fb commit 8a64491

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

docs/esa/euclid/euclid.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
.. _astroquery.esa.euclid:
22

3+
.. almost all code examples require remote-data access, thus only using this
4+
one at the very top
5+
.. doctest-remote-data-all::
6+
7+
38
********************************************
49
ESA EUCLID Archive (`astroquery.esa.euclid`)
510
********************************************
@@ -81,10 +86,6 @@ Examples
8186

8287
It is highly recommended checking the status of Euclid TAP before executing this module. To do this:
8388

84-
.. almost all code examples require remote-data access, thus only using this
85-
one at the first example
86-
.. doctest-remote-data-all::
87-
8889
>>> from astroquery.esa.euclid import Euclid
8990
>>> Euclid.get_status_messages()
9091

docs/gaia/gaia.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ Queries retrieved results can be stored locally in memory (by default) or in a f
407407
Query without saving results in a file:
408408

409409
.. doctest-remote-data::
410+
410411
>>> from astroquery.gaia import Gaia
411412
>>> job = Gaia.launch_job_async("select top 100 designation,ra,dec "
412413
... "from gaiadr3.gaia_source order by source_id")
@@ -423,10 +424,11 @@ Query without saving results in a file:
423424
...
424425
Length = 100 rows
425426

427+
426428
Query saving results in a file (you may use 'output_format' to specified the results data format,
427429
available formats are: 'votable', 'votable_plain', 'fits', 'csv' and 'json', default is 'votable'):
428430

429-
.. doctest-skip-all::
431+
.. doctest-skip::
430432

431433
>>> from astroquery.gaia import Gaia
432434
>>> job = Gaia.launch_job_async("select top 100 ra, dec "
@@ -442,7 +444,9 @@ available formats are: 'votable', 'votable_plain', 'fits', 'csv' and 'json', def
442444
1.7. Asynchronous job removal
443445
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
444446

445-
To remove asynchronous jobs::
447+
To remove asynchronous jobs:
448+
449+
.. doctest-skip::
446450

447451
>>> from astroquery.gaia import Gaia
448452
>>> Gaia.remove_jobs(["job_id_1","job_id_2",...])
@@ -451,6 +455,9 @@ To remove asynchronous jobs::
451455
2. Authenticated access
452456
-----------------------
453457

458+
.. From here on all the examples require authentication, therefore we skip doctesting them
459+
.. doctest-skip-all::
460+
454461
Authenticated users are able to access to TAP+ capabilities (shared tables, persistent jobs, etc.)
455462
In order to authenticate a user, ``login`` or ``login_gui`` methods must be called. After a
456463
successful login, the user will be authenticated until ``logout`` method is called.

0 commit comments

Comments
 (0)