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

Functions and parameters for reading and writing source and rendered files #3

Open
mark-andrews opened this issue Jul 30, 2024 · 0 comments
Assignees

Comments

@mark-andrews
Copy link
Member

We have two with ... as ... etc statement for reading and writing files.
In addition, the names of the content yaml file and the locate for the rendered html are hard-coded.

Instead, use parameters like DOCS_DIR, which is set at the top of build.py, those possibly in a .config, though that might be an overkill or even make things more complicated.

The function to write the rendered webpages, should use the href generated as per previous issue about default values of href, instead of again recreating the default value.
And we should probably use os.path.join instead of string concatenation for creating the path to the html file.

@mark-andrews mark-andrews self-assigned this Jul 30, 2024
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

No branches or pull requests

1 participant