{"id":19571639,"url":"https://github.com/serlo/mfnf-sitemap-parser","last_synced_at":"2025-02-26T10:43:00.911Z","repository":{"id":74273768,"uuid":"132353373","full_name":"serlo/mfnf-sitemap-parser","owner":"serlo","description":"A parser for \"Mathe für Nicht-Freaks\"-like sitemaps. Allows dependency export in a make-compatible format.","archived":false,"fork":false,"pushed_at":"2021-08-23T19:31:35.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-26T08:57:57.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/serlo.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":"2018-05-06T15:50:18.000Z","updated_at":"2021-08-23T19:31:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"3609724b-d8e6-4550-b741-c00fb4bb664a","html_url":"https://github.com/serlo/mfnf-sitemap-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serlo%2Fmfnf-sitemap-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serlo%2Fmfnf-sitemap-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serlo%2Fmfnf-sitemap-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serlo%2Fmfnf-sitemap-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serlo","download_url":"https://codeload.github.com/serlo/mfnf-sitemap-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240840032,"owners_count":19866164,"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":[],"created_at":"2024-11-11T06:19:38.840Z","updated_at":"2025-02-26T10:43:00.841Z","avatar_url":"https://github.com/serlo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mfnf-sitemap-parser\nA parser for \"Mathe für Nicht-Freaks\"-like sitemaps. Allows dependency export in a make-compatible format.\n\n## Sitemap Format\n\nA site-/ bookmap is a mediawiki article referring to other articles in a structured way. This description focuses mainly on bookmaps.\nBooks currently allow only one level of structure: *parts*:\n\n```markdown\n= Beispielbuch =\n== Grundlegende Formatierungen von Wikibooks ==\n* [[Mathe für Nicht-Freaks: Beispielkapitel: Grundlegende Formatierungen|Grundlegende Formatierungen]]\n\n== Eigene Formatierungen ==\n* [[Mathe für Nicht-Freaks: Beispielkapitel: Semantische Blöcke|Semantische Blöcke]]\n```\n\nThe top-level heading declares the book title: `Beispielbuch`. The second-level headings declare two *parts* with one *chapter* (article) each. Chapters are declared as a mediawiki list.\n\n## Markers (Include / Exclude / After / ...)\n\nFor each layer of the bookmap hierarchy, some meta information can be declared. This can be useful for tools like [MFNF pdf export](https://github.com/lodifice/mfnf-pdf-export). \n\nCurrently, all markers are:\n\n| Marker  | Functionality |\n| ------- | --------------|\n| include | For non-chapters: Sets default wether to include chapters for this subtarget. For chapters: Includes a chapter for this subtarget. May have a sublist listing all headings to include, all others will be excluded. |\n| exclude | For non-chapters: Sets default wether to exclude chapters for this subtarget. For chapters: Excludes a chapter for this subtarget. May have a sublist listing all headings to exclude, all others will be included. |\n| after | Sets a marker to include something after this *part* or *chapter* |\n| todo | Leave a todo message |\n\n\nThis example is specific to the pdf export tool:\n\n```markdown\n= Beispielbuch =\n* include:\n** all\n** print\n* exclude:\n** minimal\n\n== Noprint-Content ==\n* [[Mathe für Nicht-Freaks: Beispielkapitel: Inhalte im Druck unterbinden|Inhalte im Druck unterbinden]]\n** include:\n*** minimal\n** exclude:\n*** print:\n**** Parameter von Vorlagen löschen\n```\n\nMarkers on deeper levels inherit markers of the top level. For example: for the `minimal` subtarget, all *parts* are excluded by default. But this default was overridden by a *chapter*, making it still appear in `minimal`.\nFor the `print` subtarget, the heading `Parameter von Vorlagen löschen` wil be omitted from the *chapter*.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserlo%2Fmfnf-sitemap-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserlo%2Fmfnf-sitemap-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserlo%2Fmfnf-sitemap-parser/lists"}