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

Refactor generators and improve configuration handling #22

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

jag-k
Copy link
Owner

@jag-k jag-k commented Jan 25, 2025

  • Split generators into separate modules for better organization
  • Add support for multiple generator configurations
  • Add a new table_only option for Markdown generator
  • Add a simple generator for basic table output
  • Improve type hints and documentation
  • Deprecate old-style generator configuration
  • Add support for deprecated field marking
  • Add new examples to the documentation

Closes #9
Closes #6

    - Split generators into separate modules for better organization
    - Add support for multiple generator configurations
    - Add new table_only option for markdown generator
    - Add simple generator for basic table output
    - Improve type hints and documentation
    - Deprecate old-style generator configuration
    - Add support for deprecated field marking
    - Add new examples to documentation
@jag-k jag-k added this to the v0.4.0 milestone Jan 25, 2025
@jag-k jag-k self-assigned this Jan 25, 2025
jag-k added 3 commits January 25, 2025 07:01
    - Add a default `PROJECT_NAME` variable with a fallback value of "pydantic-settings-export".
    - Ensure `PROJECT_NAME` is only reloaded from `pyproject.toml` if the file exists.
    - Changed the default `paths` property in `dotenv.py` and `markdown.py` to an empty list, adding examples for better clarity.
    - Ensured parent directories are created if they don't exist before writing files in `abstract.py`.
    - Enhanced documentation for `paths` attribute with practical examples in both dotenv and Markdown generators.
…settings) and add example env files for documentation.

    - Bump `pydantic-settings` to version 2.3 and `pydantic` to version 2.7 in `pyproject.toml`.
    - Update `.env.example` and `.env.only-optional.example` paths to include `docs` directory.
    - Add new `docs/.env.example` and `docs/.env.only-optional.example` files.
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 more options to Markdown exporter Add support to “inject” config to existed Markdown file
1 participant