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

Adding support for TOML configuration files #12

Merged
merged 6 commits into from
Oct 6, 2023

Conversation

ijacobs-cpa
Copy link
Contributor

resolves #10

I have added support for TOML files in your project using tomli as requested in #10. Using -c or --config with a valid .toml config file will add any supported properties to the converted HTML.

For example: python til-builder_main.py ../examples/ --config ../config.toml :
Will convert any txt or md files in the examples folder to HTML with the configurations specified in the config.toml file:

output = "./build"
lang = "fr"

If the contents of the TOML file are invalid or the file path does not exist it raises an exception and ends the program. Any attributes provided in the TOML file that are not currently supported by the program will be ignored.

I'll mark this pull request as ready to review once I finish testing and updating the README.

@ijacobs-cpa ijacobs-cpa marked this pull request as ready for review October 5, 2023 22:04
@ijacobs-cpa
Copy link
Contributor Author

README complete. Let me know if there is anything that needs to be updated/refactored

@Amnish04
Copy link
Owner

Amnish04 commented Oct 6, 2023

@ijacobs-cpa Thanks for the Pull Request, the coding part looks good. I just put some notes for minor changes to the README file.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/utils/commandline.py Outdated Show resolved Hide resolved
@ijacobs-cpa
Copy link
Contributor Author

Updated the README as asked. Let me know if there is anything else

@Amnish04
Copy link
Owner

Amnish04 commented Oct 6, 2023

Looks good, thanks for the contribution!

@Amnish04 Amnish04 merged commit 5040569 into Amnish04:master Oct 6, 2023
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.

Add support for TOML files with -c, --config
2 participants