{"id":19931076,"url":"https://github.com/sphinx-contrib/datatemplates","last_synced_at":"2025-05-07T10:36:11.757Z","repository":{"id":45789177,"uuid":"42408169","full_name":"sphinx-contrib/datatemplates","owner":"sphinx-contrib","description":"Sphinx plugin for generating RST on the fly from data files and templates.","archived":false,"fork":false,"pushed_at":"2023-12-21T14:58:11.000Z","size":210,"stargazers_count":45,"open_issues_count":14,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-16T22:05:14.080Z","etag":null,"topics":["python","sphinx","sphinx-doc","sphinx-extension","sphinxcontrib"],"latest_commit_sha":null,"homepage":"http://sphinxcontribdatatemplates.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sphinx-contrib.png","metadata":{"files":{"readme":"README.rst","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":"2015-09-13T18:45:11.000Z","updated_at":"2024-11-14T05:47:32.000Z","dependencies_parsed_at":"2023-12-21T16:41:42.972Z","dependency_job_id":null,"html_url":"https://github.com/sphinx-contrib/datatemplates","commit_stats":{"total_commits":167,"total_committers":9,"mean_commits":"18.555555555555557","dds":0.4610778443113772,"last_synced_commit":"16469102e51ef223b13d0667dd9275feb192f088"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sphinx-contrib%2Fdatatemplates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sphinx-contrib%2Fdatatemplates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sphinx-contrib%2Fdatatemplates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sphinx-contrib%2Fdatatemplates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sphinx-contrib","download_url":"https://codeload.github.com/sphinx-contrib/datatemplates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252860563,"owners_count":21815536,"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":["python","sphinx","sphinx-doc","sphinx-extension","sphinxcontrib"],"created_at":"2024-11-12T23:06:01.293Z","updated_at":"2025-05-07T10:36:11.735Z","avatar_url":"https://github.com/sphinx-contrib.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. -*- mode: rst -*-\n\n=============================\n sphinxcontrib-datatemplates\n=============================\n\nThis package contains sphinxcontrb.datatemplates, an extension for\nSphinx to render parts of reStructuredText pages from data files in\nformats like JSON, YAML, and CSV.\n\n* Repo: https://github.com/sphinxcontrib/sphinxcontrib.datatemplates\n* Docs: http://sphinxcontribdatatemplates.readthedocs.io/\n\nSample YAML Input\n=================\n\n::\n\n    ---\n    key1: value1\n    key2:\n      - list item 1\n      - list item 2\n      - list item 3\n    nested-list:\n      - ['a', 'b', 'c']\n      - ['A', 'B', 'C']\n    mapping-series:\n      - cola: a\n        colb: b\n        colc: c\n      - cola: A\n        colb: B\n        colc: C\n\nSample Template\n===============\n\n::\n\n    .. -*- mode: rst -*-\n    \n    Individual Item\n    ~~~~~~~~~~~~~~~\n    \n    {{ data['key1'] }}\n    \n    List of Items\n    ~~~~~~~~~~~~~\n    \n    {% for item in data['key2'] %}\n    - {{item}}\n    {% endfor %}\n    \n    Nested List Table\n    ~~~~~~~~~~~~~~~~~\n    \n    Rendering a table from a list of nested sequences using hard-coded\n    headers.\n    \n    {{ make_list_table(\n        ['One', 'Two', 'Three'],\n        data['nested-list'],\n        title='Table from nested lists',\n        ) }}\n    \n    Mapping Series Table\n    ~~~~~~~~~~~~~~~~~~~~\n    \n    Rendering a table from a list of nested dictionaries using dynamic\n    headers.\n    \n    {{ make_list_table_from_mappings(\n        [('One', 'cola'), ('Two', 'colb'), ('Three', 'colc')],\n        data['mapping-series'],\n        title='Table from series of mappings',\n        ) }}\n\nRendered Output\n===============\n\nSee the `sphinx output\n\u003chttps://sphinxcontribdatatemplates.readthedocs.io/en/latest/yaml.html#rendered-output\u003e`_ online.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsphinx-contrib%2Fdatatemplates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsphinx-contrib%2Fdatatemplates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsphinx-contrib%2Fdatatemplates/lists"}