Closed emanuelen5 closed 6 months ago
The recent updates involve enhancing the API to handle and convert Markdown license files into HTML format, which are then served through a new endpoint. Additionally, the front-end now includes a page to display these licenses, with added styles for code elements and improved error handling for unauthorized access. The project structure also includes updates to ignore patterns and instructions for managing license files.
File(s) | Summary of Changes |
---|---|
api/requirements.txt |
Added markdown dependency. |
api/src/member/... |
Added functions to convert Markdown to HTML (_get_file_content_as_html , get_license_html_text ) and a new API endpoint (get_licenses() ). |
data/licenses/.gitignore |
Updated to ignore Markdown (.md) and HTML (.html) files. |
data/licenses/README.md |
Provided instructions for managing license files in HTML format. |
public/scss/style.scss |
Introduced styling for code elements to preserve whitespace. |
public/ts/licenses.tsx |
Added LicensesPage component to render license content from API, handle unauthorized access, and set up necessary constants and document loading events. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This license page can be configurable per Makerspace without adding any code to git