Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a job to build the docs on CI #1107

Merged
merged 21 commits into from
Mar 10, 2022

Conversation

LucyJimenez
Copy link
Contributor

@LucyJimenez LucyJimenez commented Mar 7, 2022

xref #1063
On this PR create a job for docs

@LucyJimenez LucyJimenez changed the title Add a job to build the docs on CI [WIP] Add a job to build the docs on CI Mar 7, 2022
@LucyJimenez LucyJimenez changed the title [WIP] Add a job to build the docs on CI Add a job to build the docs on CI Mar 7, 2022
@datapythonista
Copy link
Member

Did you check if the docs are being built correctly?

@LucyJimenez
Copy link
Contributor Author

LucyJimenez commented Mar 9, 2022

Did you check if the docs are being built correctly?

Yes, now it’s possible to create the HTML. I’m working on fixing the problems, and I’ll be listing the issues here.

  • asv/docs/source/manindex.rst:document isn't included in any toctree
  • asv/docs/source/benchmarks.rst:148:py:obj reference target not found: time.clock
  • asv/docs/source/using.rst:295:py:obj reference target not found: ^!
  • asv/docs/source/writing_benchmarks.rst:280:py:obj reference target not found: rounds
  • asv/docs/source/writing_benchmarks.rst:280:py:obj reference target not found: repeat
  • asv/docs/source/writing_benchmarks.rst:280:py:obj reference target not found: number

@LucyJimenez
Copy link
Contributor Author

@datapythonista The PR is ready for your review; thanks!

@@ -47,3 +47,18 @@ jobs:

- name: Check code with flake8
run: flake8 .

docs:
name: builds the documentation using Sphinx
Copy link
Member

Choose a reason for hiding this comment

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

I think you can delete this row. The default docs is easier to read in my opinion.

- name: Install asv
run: pip install .

- name: build-command
Copy link
Member

Choose a reason for hiding this comment

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

Build docs is probably a clear name

@@ -146,7 +146,7 @@ Timing benchmarks
benchmark. Default: 2

- ``timer``: The timing function to use, which can be any source of
monotonically increasing numbers, such as `time.clock`, `time.time`
monotonically increasing numbers, such as `time.time`
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't make a lot of sense. Just leave both time.clock and time.time escaped with double backticks, as the rest of things in this section.

@@ -3,6 +3,7 @@ Reference

.. toctree::

manindex.rst
Copy link
Member

Choose a reason for hiding this comment

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

This seems to be a duplicate of reference, just remove the page instead of including it here.

@@ -277,7 +277,7 @@ How ASV runs benchmarks is as follows (pseudocode for main idea)::
sample = timing_function(<run benchmark `number` times>) / `number`
<teardown `benchmark`>

where the actual `rounds`, `repeat`, and `number` are :doc:`attributes
where the actual :doc:`rounds <benchmarks>`, :doc:`repeat <benchmarks>`, and :doc:`number <benchmarks>` are :doc:`attributes
Copy link
Member

Choose a reason for hiding this comment

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

No idea what this is supposed to do, but just use double backticks.

@LucyJimenez
Copy link
Contributor Author

@datapythonista, I included the last comments. The PR is ready for review. Thanks a lot!

Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

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

If having an xref in the description correct? Or should we have a close and let this automatically close the issue?

@@ -46,6 +46,20 @@ jobs:

- name: flake8
run: flake8 .

Copy link
Member

Choose a reason for hiding this comment

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

You should review the diffs when you're done, and things like this shouldn't be introduced by mistake.

@datapythonista datapythonista merged commit 53bf9cb into airspeed-velocity:master Mar 10, 2022
@datapythonista
Copy link
Member

Thanks @LucyJimenez

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.

2 participants