{"id":18974792,"url":"https://github.com/bigbite/wordpress-git-content","last_synced_at":"2025-04-19T16:44:24.691Z","repository":{"id":35580116,"uuid":"39852587","full_name":"bigbite/wordpress-git-content","owner":"bigbite","description":"Pull markdown from a Github repo and output html in a post","archived":false,"fork":false,"pushed_at":"2016-10-25T13:50:44.000Z","size":1774,"stargazers_count":28,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-16T11:05:51.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/bigbite.png","metadata":{"files":{"readme":"README.md","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":"2015-07-28T19:03:08.000Z","updated_at":"2023-02-09T00:14:03.000Z","dependencies_parsed_at":"2022-08-04T03:45:14.975Z","dependency_job_id":null,"html_url":"https://github.com/bigbite/wordpress-git-content","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/bigbite%2Fwordpress-git-content","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigbite%2Fwordpress-git-content/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigbite%2Fwordpress-git-content/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigbite%2Fwordpress-git-content/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigbite","download_url":"https://codeload.github.com/bigbite/wordpress-git-content/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249740889,"owners_count":21318714,"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-08T15:16:17.193Z","updated_at":"2025-04-19T16:44:24.672Z","avatar_url":"https://github.com/bigbite.png","language":"PHP","readme":"Git Content\n===============\n\nPull markdown from a Github repo and output html in a post (replacing the content).\n\nTo get started: download the zip, unzip and place plugins directory.\n\nGo to Git Content menu and enter your details:\n\n* **Token:** Is a Github personal token: https://github.com/settings/tokens/new\n* **Repo:** Is for example `bigbitecreative/my-repo`\n* **Branch:** Would be which branch to target: `master`, `develop` etc.\n* **Route:** This is secret to use for a Github hook, so make sure its secure and url safe: `HknYHr2wccgVZ466RA9F` .\n\nOnce set up go to a post, you will see a new addition to the publish box:\n\n![Publish Box](http://share.agnew.co/1au0X+)\n\nTo load a file, put the filename in this box - for example `my-post.md` then click Update. Anytime you need to refetch the file, in cases where you have made changes on the repo - just update the post.\n\nIf you need to revert back to use the visual editor, just set this box to empty and click Update.\n\n## Github Hook\n\nIf you want posts to auto update when you make a commit you can add a Github hook, note it will update all Git Content posts not just the one the commit relates too. To add a Github hook visit `Settings` -\u003e `Webhooks`. Payload URL would be:\n\n```\nPayload URL: {site-url}/git-content/hook/{route}\n```\n\nTherefore using our example:\n```\nhttps://bigbitecreative.com/git-content/hook/HknYHr2wccgVZ466RA9F\n```\n\nThe secret isn't used but you can place the `route` value in there as well. Now when you commit a change Github will call your site and it will run an update on each Git Content post pulling in the latest changes.\n\nIt's worth noting that it would better to just update the post that the commit relates too - this may be in a future release.\n\n## Styling\n\nThe `includes` folder contains a SASS file to help you style the html outputted from the markdown - if you don't use SASS you can include the CSS in your theme. If you want code highlighting include the js file in your theme and on the body tag:\n\n``` html\n\u003cbody onload=\"addPrettyPrint()\"\u003e\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigbite%2Fwordpress-git-content","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigbite%2Fwordpress-git-content","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigbite%2Fwordpress-git-content/lists"}