{"id":25195189,"url":"https://github.com/siongui/pelican-code","last_synced_at":"2025-10-30T20:16:34.104Z","repository":{"id":11896472,"uuid":"14459630","full_name":"siongui/pelican-code","owner":"siongui","description":"Pelican plugin to include source code file in your post by reStructuredText directive.","archived":false,"fork":false,"pushed_at":"2013-11-17T02:10:11.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T00:51:11.940Z","etag":null,"topics":["pelican","pelican-plugins","restructuredtext"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/siongui.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-17T02:08:18.000Z","updated_at":"2022-11-07T00:09:19.000Z","dependencies_parsed_at":"2022-08-31T22:22:55.994Z","dependency_job_id":null,"html_url":"https://github.com/siongui/pelican-code","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/siongui%2Fpelican-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siongui%2Fpelican-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siongui%2Fpelican-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siongui%2Fpelican-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siongui","download_url":"https://codeload.github.com/siongui/pelican-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247198421,"owners_count":20900084,"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":["pelican","pelican-plugins","restructuredtext"],"created_at":"2025-02-10T00:50:39.763Z","updated_at":"2025-10-30T20:16:33.998Z","avatar_url":"https://github.com/siongui.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=============================================\nPelican Plugin for Including Source Code File\n=============================================\n\nPelican plugin to include source code file in your post by reStructuredText directive.\n\nInstallation\n============\n\nFollow the `instructions \u003chttp://docs.getpelican.com/en/latest/plugins.html\u003e`_\nin `official Pelican documentation \u003chttp://docs.getpelican.com/\u003e`_.\n\nUsage\n=====\n\nUse the following reStructuredText directive in your post:\n\n.. code-block:: rst\n\n  .. code-file:: {{ filename }}\n      :encoding: (optional)\n      :tab-width: (optional)\n      :start-line: (optional)\n      :end-line: (optional)\n      :start-after: (optional)\n      :end-before: (optional)\n      :class: (optional)\n      :name: (optional)\n\nThe source code file must be put in the same directory of your post.\nThe only necessary argument is {{ filename }}. For details descriptions \nof options, please see the options of `Including an External Document Fragment \u003chttp://docutils.sourceforge.net/docs/ref/rst/directives.html#including-an-external-document-fragment\u003e`__ (This directive is derived from it.).\n\n\nUNLICENSE\n=========\n\nThis plugin is released in public domain. See `UNLICENSE \u003chttp://unlicense.org/\u003e`_.\n\nReferences\n==========\n\n1. `Including an External Document Fragment \u003chttp://docutils.sourceforge.net/docs/ref/rst/directives.html#including-an-external-document-fragment\u003e`__\n\n2. `source code \u003chttp://sourceforge.net/p/docutils/code/HEAD/tree/tags/docutils-0.11/docutils/parsers/rst/directives/misc.py\u003e`_ of \"Including an External Document Fragment\"\n\n3. `Creating reStructuredText Directives \u003chttp://docutils.sourceforge.net/docs/howto/rst-directives.html\u003e`_\n\n4. `Introduction and Quickstart - Pygments \u003chttp://pygments.org/docs/quickstart/\u003e`_\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiongui%2Fpelican-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiongui%2Fpelican-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiongui%2Fpelican-code/lists"}