{"id":20530308,"url":"https://github.com/zoomten/mdiocre","last_synced_at":"2026-05-21T16:10:03.482Z","repository":{"id":40648682,"uuid":"174114426","full_name":"ZoomTen/MDiocre","owner":"ZoomTen","description":"A (terrible) generator for static websites from Markdown (and other markup) files.","archived":false,"fork":false,"pushed_at":"2023-07-02T10:32:27.000Z","size":179,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T02:24:12.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://zumi.neocities.org/stuff/mdiocre","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/ZoomTen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2019-03-06T09:31:06.000Z","updated_at":"2023-08-21T12:20:08.000Z","dependencies_parsed_at":"2024-11-15T23:36:24.258Z","dependency_job_id":"834df64b-6050-4761-950f-e9ff06750f96","html_url":"https://github.com/ZoomTen/MDiocre","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/ZoomTen/MDiocre","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZoomTen%2FMDiocre","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZoomTen%2FMDiocre/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZoomTen%2FMDiocre/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZoomTen%2FMDiocre/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZoomTen","download_url":"https://codeload.github.com/ZoomTen/MDiocre/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZoomTen%2FMDiocre/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33306913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"ssl_error","status_checked_at":"2026-05-21T12:22:11.673Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-15T23:36:15.525Z","updated_at":"2026-05-21T16:10:03.464Z","avatar_url":"https://github.com/ZoomTen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MDiocre\n\n![MDiocre](logo.svg)\n\nA very simple static website generator tool powered by Python. It primarily converts Markdown files and combines it with an HTML template, but can be extended to other markup.\n\n## Requirements\n\n* Python 3 (`python-markdown` + `py-gfm`)\n\n## Other Requirements\n\n**ReStructuredText** (RST) support requires `docutils` to be installed.\n\nIf you want to build the **documentation**, you will have to install Sphinx as well.\n\n## What sets it apart from other tools?\n\nIt's terrible and it doesn't have a profitable and pragmatic usecase in mind, but it works okay. For my needs, anyway. It's alright for simple blogs with no tagging and very simple static websites.\n\n## How do I make a site with this?\n\n1. Install `mdiocre` by using the command: `python3 -m pip install mdiocre`.\n\n2. Create a work folder. Let's call it `work`.\n\n3. Make a file called `template.html` inside that folder with these contents:\n   \n   ```\n   \u003chtml\u003e\n   \u003chead\u003eWelcome to my website!\u003c/head\u003e\n   \u003cbody\u003e\u003c!--:content--\u003e\u003c/body\u003e\n   \u003c/html\u003e\n   ```\n\n4. Create a folder called `src`, and make a file inside of it called `index.md`, and write anything on it.\n\n5. After your content (or before, it doesn't matter), add: `\u003c!--:mdiocre-template=\"../template.html\"--\u003e`\n\n6. Go back a level to your `work` folder. Assuming Python is present in your PATH (environment variable), create a new text document containing:\n   \n   ```\n   python3 -m mdiocre.interface.cli src build\n   ```\n   \n   Save it inside the folder as a .bat if you're on Windows, or as a .sh if you're on Mac, Linux, or other Unix-like systems. Double click or execute it.\n\n7. Check the `build` folder.\n\n## Variables\n\nMDiocre allows setting variables. These variables are per-page, and can be read by the template. Both the template and the markdown page share the same format for templates - which are HTML comments with the first character after the markup being the colon (:)\n\n**Setting a variable to a string**\n\n```\n\u003c!--: hello = \"test message\" --\u003e\n```\n\nSimply sets `hello` to `test message`. When using a comma, make sure to escape it with \\\\!\n\n**Setting a variable to another variable**\n\n```\n\u003c!--: hello = lemons --\u003e\n```\n\nIf `lemons` is `1` then `hello` will also be `1`. If `lemons` is not set, `hello` will contain the string `lemons`.\n\n**Concatenating two or more variables**\n\n```\n\u003c!--: lemons = hello, hello --\u003e\n```\n\nIf `hello` contains `abc` then `lemons` will contain `abcabc`. However, if you also include a space string in between, like this...\n\n```\n\u003c!-- lemons = hello, \" \", hello --\u003e\n```\n\n`lemons` will contain `abc abc`!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoomten%2Fmdiocre","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoomten%2Fmdiocre","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoomten%2Fmdiocre/lists"}