=== Documents from Git === Contributors: nilsnolde,danilopinotti Plugin Name: Documents from Git Plugin URI: https://github.com/gis-ops/wordpress-markdown-git Tags: markdown,jupyter,notebook,github,bitbucket,gitlab,vcs Author URI: https://gis-ops.com Author: GIS-OPS UG Requires at least: 5.0.0 Tested up to: 5.8.1 Requires PHP: 7.0 Stable tag: 2.2.0 Version: 2.2.0 License: GPLv3 License URI: https://github.com/gis-ops/wordpress-markdown-git/blob/master/LICENSE A plugin to inject and render files in a WordPress post or page directly from most popular Git platforms. Currently supported file types: Markdown, Jupyter notebook. Currently supported platforms: Github, Bitbucket, Gitlab. == Description == Official documentation: https://github.com/gis-ops/wordpress-markdown-git This WordPress Plugin lets you easily publish, collaborate on and version control your \[**Markdown, Jupyter notebook**\] documents directly from your favorite remote Git platform, **even if it's self-hosted**. The advantages are: - Write documents in your favorite editor and just push to your remote repository to update your blog instantly - Use the power of version control: publish different versions of the document in different posts, i.e. from another branch or commit than latest `master` - Easy to update by your readers via pull requests, minimizing the chance of stale tutorials The following document types are currently supported: - Markdown - Jupyter notebooks (**only for public repositories**) The following platforms are currently supported: - Github - Bitbucket - Gitlab ## Usage **Note**, this plugin uses Github's wonderful [`/markdown` API](https://developer.github.com/v3/markdown/) to render to HTML. This comes with 2 caveats: 1. Unless authenticated, the rate limit is set at 60 requests per minute. Since v1.1.0 the plugin is capable of statically [caching content](#caching). In case that's not dynamic enough for you, your only option currently is to not use any cache in which case every document will be pulled from your provider every time someone opens it on your site. Then it's **strongly recommended** to create a Github access token and register it with the plugin. Then the rate limit will be set to 5000 requests per hour. See [Global attributes section](#global-attributes) for details on how to do that. 2. The Markdown content cannot exceed 400 KB, so roughly 400 000 characters incl whitespace. If not a monographic dissertation, this should not be an applicable limit though. ### Shortcodes The plugin features a variety of shortcodes. #### Publish documents The document-specific shortcodes follow a pattern of `[git--]`, where - `` can be one of - `github`: if you use Github as your VCS platform - `bitbucket`: if you use Bitbucket as your VCS platform - `gitlab`: if you use Gitlab as your VCS platform - `` can be one of - `markdown`: Render your Markdown files hosted on your VCS platform in Github's rendering style - `jupyter`: Render your Jupyter notebook hosted on your VCS platfrom (**only for public repositories**) - `checkout`: Renders a small badge-like box with a link to the document and the date of the last commit - `history`: Renders a `

` section with the last commit dates, messages and authors #### Manipulate rendering style Additionally, there's an enclosing shortcode `[git-add-css]` which adds a `