mansenfranzen / autodoc_pydantic

Seamlessly integrate pydantic models in your Sphinx documentation.
MIT License
159 stars 27 forks source link

docs: Replace Sphinx `index.rst` with repo's `README.md` #270

Closed mansenfranzen closed 7 months ago

mansenfranzen commented 7 months ago

User description

docs: Improve README.md with update badges and remove animated gif comparison examples docs: Fix broken link in example section


Type

documentation, enhancement


Description


Changes walkthrough

Relevant files
Enhancement
README.md
Enhance README with Updated Badges and Reformatted Sections

README.md
  • Updated badges with new styles and added logos.
  • Added new badges for documentation stability, linting, and types.
  • Reformatted the 'Features' and 'Documentation' sections with emojis
    and new layout.
  • Updated the 'Acknowledgements' section with a new badge style and
    logo.
  • +23/-24 
    Documentation
    index.rst
    Replace Sphinx index with README and Update Navigation     

    docs/source/index.rst
  • Replaced the entire content of index.rst with an include directive to
    the README.md.
  • Updated the table of contents to use emojis and hidden attribute for
    cleaner navigation.
  • +9/-75   
    examples.rst
    Update Example Tabs and Hyperlink Formats                               

    docs/source/users/examples.rst
  • Updated tab titles to reflect the tool used (autodoc_pydantic vs.
    default sphinx).
  • Corrected hyperlink format for model validators.
  • +3/-3     

    PR-Agent usage: Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    codecov-commenter commented 7 months ago

    Codecov Report

    All modified and coverable lines are covered by tests :white_check_mark:

    Project coverage is 92.91%. Comparing base (0be2710) to head (4feb3ed). Report is 1 commits behind head on main.

    Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #270 +/- ## ========================================== - Coverage 93.82% 92.91% -0.91% ========================================== Files 13 13 Lines 1101 1101 ========================================== - Hits 1033 1023 -10 - Misses 68 78 +10 ```

    :umbrella: View full report in Codecov by Sentry.
    :loudspeaker: Have feedback on the report? Share it here.

    github-actions[bot] commented 7 months ago

    PR Description updated to latest commit (https://github.com/mansenfranzen/autodoc_pydantic/commit/4feb3ed19d15d27ff80d795843fe004a31467e90)

    github-actions[bot] commented 7 months ago

    PR Review

    ⏱️ Estimated effort to review [1-5] 2, because the changes are primarily documentation updates which are generally easier and quicker to review than code changes. The modifications include badge updates in the README.md and restructuring of the Sphinx documentation to use the README.md directly, which simplifies the review process.
    🧪 Relevant tests No
    🔍 Possible issues No
    🔒 Security concerns No
    Code feedback:

    ✨ Review tool usage guide:
    **Overview:** The `review` tool scans the PR code changes, and generates a PR review which includes several types of feedbacks, such as possible PR issues, security threats and relevant test in the PR. More feedbacks can be [added](https://pr-agent-docs.codium.ai/tools/review/#general-configurations) by configuring the tool. The tool can be triggered [automatically](https://pr-agent-docs.codium.ai/usage-guide/automations_and_usage/#github-app-automatic-tools-when-a-new-pr-is-opened) every time a new PR is opened, or can be invoked manually by commenting on any PR. - When commenting, to edit [configurations](https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/configuration.toml#L23) related to the review tool (`pr_reviewer` section), use the following template: ``` /review --pr_reviewer.some_config1=... --pr_reviewer.some_config2=... ``` - With a [configuration file](https://pr-agent-docs.codium.ai/usage-guide/configuration_options/), use the following template: ``` [pr_reviewer] some_config1=... some_config2=... ``` See the review [usage page](https://pr-agent-docs.codium.ai/tools/review/) for a comprehensive guide on using this tool.
    github-actions[bot] commented 7 months ago

    PR Code Suggestions

    CategorySuggestions                                                                                                                                                       
    Accessibility
    Add descriptive alt text to badges to enhance accessibility. ___ **To enhance accessibility, consider adding descriptive alt text to the badges for users who
    rely on screen readers.** [README.md [11]](https://github.com/mansenfranzen/autodoc_pydantic/pull/270/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R11-R11) ```diff -[![GitHub License](https://img.shields.io/github/license/mansenfranzen/autodoc_pydantic?style=for-the-badge&color=orange&logo=semanticscholar&logoColor=white)](https://github.com/mansenfranzen/autodoc_pydantic/blob/main/LICENSE) +[![GitHub License - click to view license details](https://img.shields.io/github/license/mansenfranzen/autodoc_pydantic?style=for-the-badge&color=orange&logo=semanticscholar&logoColor=white)](https://github.com/mansenfranzen/autodoc_pydantic/blob/main/LICENSE) ```
    Usability
    Modify badge links to open in new tabs to improve user browsing experience. ___ **Ensure that the links in badges open in new tabs to keep the README.md context intact for
    the user, improving the browsing experience.** [README.md [7]](https://github.com/mansenfranzen/autodoc_pydantic/pull/270/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R7-R7) ```diff -[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/mansenfranzen/autodoc_pydantic/tests-push-pr.yml?style=for-the-badge&logo=github)](https://github.com/mansenfranzen/autodoc_pydantic/actions) +[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/mansenfranzen/autodoc_pydantic/tests-push-pr.yml?style=for-the-badge&logo=github)](https://github.com/mansenfranzen/autodoc_pydantic/actions){:target="_blank"} ```
    Documentation
    Add descriptions under badge sections to enhance user understanding. ___ **Add a brief description under the section of badges to explain their purpose and
    relevance, enhancing the understanding for new users.** [README.md [5]](https://github.com/mansenfranzen/autodoc_pydantic/pull/270/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R5-R5) ```diff [![PyPI - Downloads](https://img.shields.io/pypi/dm/autodoc_pydantic?style=for-the-badge&logo=python&logoColor=white&color=blue)](https://pypistats.org/packages/autodoc-pydantic) + ```

    ✨ Improve tool usage guide:
    **Overview:** The `improve` tool scans the PR code changes, and automatically generates suggestions for improving the PR code. The tool can be triggered [automatically](https://pr-agent-docs.codium.ai/usage-guide/automations_and_usage/#github-app-automatic-tools-when-a-new-pr-is-opened) every time a new PR is opened, or can be invoked manually by commenting on a PR. - When commenting, to edit [configurations](https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/configuration.toml#L78) related to the improve tool (`pr_code_suggestions` section), use the following template: ``` /improve --pr_code_suggestions.some_config1=... --pr_code_suggestions.some_config2=... ``` - With a [configuration file](https://pr-agent-docs.codium.ai/usage-guide/configuration_options/), use the following template: ``` [pr_code_suggestions] some_config1=... some_config2=... ``` See the improve [usage page](https://pr-agent-docs.codium.ai/tools/improve/) for a comprehensive guide on using this tool.