Enhanced the Article model to include IFrame and GithubGist nodes, enabling rendering of embedded content such as iframes and GitHub gists. Implemented a new GithubClient to fetch gist content and updated MediumClient to handle iframe and gist types. Added styles and template support for iframes and gists in articles.
These changes improve the flexibility of article content, enabling richer media experiences.
Removed an unnecessary 'https://' prefix in the small URL example
to ensure proper URL rendering in the home page. This change
fixes an issue where the URL template would display incorrectly,
potentially causing confusion for users.
Consolidated opening and closing tags for text elements, removing unnecessary line breaks. This improves readability and reduces the complexity of the HTML structure, ensuring better maintainability. No functional changes are introduced.
Simplified app initialization by removing the `Config` class and cleaning up unused configuration settings. This reduces redundancy and potential confusion in the codebase.
- Added 'type' attribute to the Text dataclass to support HTML tag designation.
- Trimmed text content and assigned types in MediumClient to improve consistency.
- Updated article template to dynamically use text types, allowing for more flexible HTML structure.
- Applied CSS styling for 'pre' tags to enhance code block appearance.
These changes improve the semantic structure of articles and enhance the visual presentation of code blocks in the user interface.
Updated the instructional text to replace "medium.com" with the full "https://medium.com/" URL to avoid potential confusion and ensure users receive a clear and consistent guideline. This should enhance the user experience by providing explicit directions.
Cleaned up unused os imports in the configuration module to improve readability and reduce clutter. This change has no impact on functionality. No related issues.
Add initial project structure for Small, a clean frontend for reading Medium articles. This setup includes:
- Basic Flask app configuration with necessary dependencies.
- RESTful endpoint to fetch and serve Medium articles.
- Templates and static assets for the user interface.
- Utility functions for parsing Medium article IDs.
- Custom error pages (404 and 500) for nicer error handling.
- Project metadata files such as .gitignore, README, LICENSE, and pyproject.toml for project setup and documentation.
This structure sets the foundation for further development and feature additions.