{"id":15057035,"url":"https://github.com/blueswen/mkdocs-redoc-tag","last_synced_at":"2025-08-18T17:33:47.830Z","repository":{"id":218341267,"uuid":"727734575","full_name":"blueswen/mkdocs-redoc-tag","owner":"blueswen","description":"A MkDocs plugin supports adding Redoc to the page.","archived":false,"fork":false,"pushed_at":"2024-01-23T15:40:51.000Z","size":676,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-15T18:48:42.039Z","etag":null,"topics":["mkdocs","mkdocs-plugin","openapi","openapi3","redoc"],"latest_commit_sha":null,"homepage":"https://blueswen.github.io/mkdocs-redoc-tag/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blueswen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"ko_fi":"blueswen"}},"created_at":"2023-12-05T13:20:17.000Z","updated_at":"2024-01-22T14:22:53.000Z","dependencies_parsed_at":"2024-01-23T16:55:42.301Z","dependency_job_id":null,"html_url":"https://github.com/blueswen/mkdocs-redoc-tag","commit_stats":null,"previous_names":["blueswen/mkdocs-redoc-tag"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blueswen%2Fmkdocs-redoc-tag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blueswen%2Fmkdocs-redoc-tag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blueswen%2Fmkdocs-redoc-tag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blueswen%2Fmkdocs-redoc-tag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blueswen","download_url":"https://codeload.github.com/blueswen/mkdocs-redoc-tag/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230078866,"owners_count":18169306,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mkdocs","mkdocs-plugin","openapi","openapi3","redoc"],"created_at":"2024-09-24T22:01:11.250Z","updated_at":"2025-08-18T17:33:47.811Z","avatar_url":"https://github.com/blueswen.png","language":"Python","funding_links":["https://ko-fi.com/blueswen"],"categories":[],"sub_categories":[],"readme":"# MkDocs Redoc Tag \n\n\u003ca target=\"_blank\" href=\"https://pypi.org/project/mkdocs-redoc-tag\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/mkdocs-redoc-tag.svg\" alt=\"PyPI version\"/\u003e\u003c/a\u003e\n\u003ca target=\"_blank\" href=\"https://pypi.org/project/mkdocs-redoc-tag\"\u003e\u003cimg src=\"https://img.shields.io/pypi/dm/mkdocs-redoc-tag.svg\" alt=\"PyPI downloads\"/\u003e\u003c/a\u003e\n\u003ca target=\"_blank\" href=\"https://codecov.io/gh/blueswen/mkdocs-redoc-tag\"\u003e\u003cimg src=\"https://codecov.io/gh/blueswen/mkdocs-redoc-tag/branch/main/graph/badge.svg\" alt=\"Codecov\"/\u003e\u003c/a\u003e\n\nA MkDocs plugin supports adding [Redoc](https://github.com/Redocly/redoc) to the page.\n\n## Features\n\n1. OpenAPI Specification file from online over URL or static file in docs\n2. All dependencies are using static files handled by the plugin not from CDN, especially suitable for those documents been deployed in the intranet\n3. Synchronized dark mode with [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/)\n\n## Dependency\n\n1. Python Package\n    1. beautifulsoup4\u003e=4.11.1\n2. Redoc standalone javascript from [official CDN](https://github.com/Redocly/redoc?tab=readme-ov-file#releases)\n    1. redoc==2.4.0\n\n## Usage\n\n1. Install the plugin from Pypi\n\n    ```bash\n    pip install mkdocs-redoc-tag\n    ```\n\n2. Add ```redoc-tag``` plugin into your mkdocs.yml plugins sections:\n\n    ```yaml\n    plugins:\n       - redoc-tag\n    ```\n3. Add ```redoc``` tag in markdown to include Redoc:\n\n    ```html\n    \u003credoc src=\"https://petstore.swagger.io/v2/swagger.json\"/\u003e\n    ```\n\n    ![Redoc Sample Image](https://blueswen.github.io/mkdocs-redoc-tag/sample.png)\n\n4. You may customize the plugin by passing options in mkdocs.yml:\n\n    ```yaml\n    plugins:\n       - redoc-tag:\n            background: White\n    ```\n\n    | Options | Type | Description |\n    |---|---|---|\n    | background | String | Default: \"\". Redoc iframe body background attribute value. You can use any css value for background for example \"#74b9ff\" or \"Gainsboro\" or \"\" for nothing. |\n    | height | String | Default: \"80vh\". Height of Redoc iframe. |\n\n## How it works\n\n1. Copy Redoc script file into `site/assets/javascripts/` directory\n2. Search all redoc tags, then convert them to an iframe tag and generate the iframe target html with the given OpenAPI Specification src path\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](https://github.com/Blueswen/mkdocs-redoc-tag/blob/main/LICENSE) file for details.\n\n## Reference\n\n1. [redark](https://github.com/dilanx/redark): source of dark mode javascript and css\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblueswen%2Fmkdocs-redoc-tag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblueswen%2Fmkdocs-redoc-tag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblueswen%2Fmkdocs-redoc-tag/lists"}