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

Docs cleanup #142

Merged
merged 6 commits into from
Nov 10, 2022
Merged

Docs cleanup #142

merged 6 commits into from
Nov 10, 2022

Conversation

stevepiercy
Copy link
Contributor

This PR contains trivial updates after I ran make linkcheck and make html. There are no substantial content revisions.

- No _static path exists
- White space has meaning: add line break between `code-block` and code
- `yml` is not a valid lexer; `yaml` is valid
@stevepiercy stevepiercy self-assigned this Jul 9, 2020
Copy link

@thyarles thyarles left a comment

Choose a reason for hiding this comment

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

LGTM

docs/conf.py Outdated
version = '1.2.0'
# The full version, including alpha/beta/rc tags.
release = '1.2.0'
with open('../version.txt', 'r') as reader:
Copy link

Choose a reason for hiding this comment

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

You may want to make that path relative to the conf.py file using os.path.relpath and file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean this?

with open(os.path.relpath('../version.txt'), 'r') as reader:

I don't know why using os.path.relpath would be better, but I would appreciate it if you can enlighten me.

Copy link

Choose a reason for hiding this comment

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

More like with open(os.path.join(os.path.dirname(__file__), os.path.pardir, "version.txt")) as this will work correctly in all platforms irrespective of which current directory the program is invoked from.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 83758d3.

@stevepiercy stevepiercy merged commit 1bef9b4 into master Nov 10, 2022
@stevepiercy stevepiercy deleted the docs-cleanup branch November 10, 2022 20:31
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.

3 participants