WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: documents-from-git (Used by 58 domains)

Documents from Git

👤 nilsnolde 📦 v2.2.0 🔗 Plugin Homepage

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 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. 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 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

to wrap its contents. That way you can manipulate the style freely with additional CSS classes. Follow these steps:

  1. Add a CSS file to your theme’s root folder, which contains some classes, e.g. class1, class2, class3
  2. Enqueue the CSS file by adding wp_enqueue_style('my-style', get_template_directory_uri().'/my-style.css'); to the theme’s functions.php
  3. Add the enclosing git-add-css shortcode to your post with the custom CSS classes in the classes attribute, e.g.:

    [git-add-css classes="class1 class2 class3"]
    [git-gitlab-checkout url=...]
    [git-gitlab-markdown url=...]
    [git-gitlab-history url=...]
    [/git-add-css]

Attributes

Each shortcode takes a few attributes, indicating if it’s required for public or private repositories:

Attribute
Action
Public repo
Private repo
Type
Description

url
all except git-add-css
:ballot_box_with_check:
:ballot_box_with_check:
string
The browser URL of the document, e.g. https://github.com/gis-ops/wordpress-markdown-git/blob/master/README.md

user
all except git-add-css
:negative_squared_cross_mark:
:ballot_box_with_check:
string
The user name (not email) of an authorized user

token
all except git-add-css
:negative_squared_cross_mark:
:ballot_box_with_check:
string
The access token/app password for the authorized user

cache_ttl
all except git-add-css
:negative_squared_cross_mark:
:negative_squared_cross_mark:
integer
The time in seconds that the plugin will cache, only for cache_strategy=static.

cache_strategy
all except git-add-css
:negative_squared_cross_mark:
:negative_squared_cross_mark:
integer
Only static caching is implemented so far. dynamic caching is on the way!

limit
history
:negative_squared_cross_mark:
:negative_squared_cross_mark:
integer
Limits the history of commits to this number. Default 5.

classes
git-add-css
:ballot_box_with_check:
:ballot_box_with_check:
string
The additional CSS classes to render the content with

Global attributes

Since most attributes will be the same across the entire system, this plugin offers the possibility to set all attributes globally except for url:

In the menu PluginsPlugin Editor, choose “Documents from Git” and enter your preferences in the includes/config.json.

Note, setting the attributes manually in the shortcode has always precedence over any settings in includes/config.json.

Caching

Often we need to prioritize speed when loading content and, in addition, it is very costly to fetch, load and format the content every time we need to read the content of the post.

This plugin soon offers 2 methods for caching, static and dynamic which can be set via the cache_strategy property.

Static caching (cache_strategy=static)

This is the default strategy, as it doesn’t require any user action.

The property cache_ttl sets how many seconds the content cache will keep alive.

Currently there’s no way to flush the cache manually. However, changing cache_ttl or the history limit will create a new cache.

Dynamic caching (cache_strategy=dynamic)

This is not implemented yet. See #20 for details.

Token authorization

You need to authorize via user and token if you intend to publish from a private repository. You don’t need to authorize if the repository is open.

However, keep in mind that some platforms have stricter API limits for anonymous requests which are greatly extended if you provide your credentials. So even for public repos it could make sense. And unless you use this plugin’s caching capabilities, it’s strongly recommended to register a Github access token regardless of the VCS hosting platform, see the beginning of the chapter.

How to generate the token depends on your platform:

This plugin needs only Read access to your repositories. Keep that in mind when creating an access token.

Examples

We publish our own tutorials with this plugin: https://gis-ops.com/tutorials/.

Publish Markdown from Github

[git-github-markdown url="https://github.com/gis-ops/tutorials/blob/master/qgis/QGIS_SimplePlugin.md"]

Publish Markdown from Github with 1 hour cache

[git-github-markdown url="https://github.com/gis-ops/tutorials/blob/master/qgis/QGIS_SimplePlugin.md" cache_ttl="3600" cache_strategy="static"]

Publish Jupyter notebook from Github

[git-github-jupyter url="https://github.com/GIScience/openrouteservice-examples/blob/master/python/ortools_pubcrawl.ipynb"]

Publish from a private repository

[git-bitbucket-jupyter user=nilsnolde token=3292_2p3a_84-2af url="https://bitbucket.org/nilsnolde/test-wp-plugin/src/master/README.md"]

Display last commit and document URL from Bitbucket

[git-bitbucket-checkout url="https://bitbucket.org/nilsnolde/test-wp-plugin/src/master/README.md"]

Display commit history from Gitlab

git-gitlab-history limit=5 url="https://gitlab.com/nilsnolde/esy-osm-pbf/-/blob/master/README.md"]

Use additional CSS classes to style

The following example will put a dashed box around the whole post:

`

[git-add-css classes=”md-dashedbox”]
[git-github-checkout url=”https://github.com/gis-ops/tutorials/blob/master/qgis/QGIS_SimplePlugin.md”]
[git-github-markdown url=”https://github.com/gis-ops/tutorials/blob/master/qgis/QGIS_SimplePlugin.md”]
[git-github-history url=”https://github.com/gis-ops/tutorials/blob/master/qgis/QGIS_SimplePlugin.md”]
[/git-add-css]
`

With the following CSS file contents enqueued to your theme:

`css

div.md_dashedbox {
position: relative;
font-size: 0.75em;
border: 3px dashed;
padding: 10px;
margin-bottom:15px
}

div.md_dashedbox div.markdown-github {
color:white;
line-height: 20px;
padding: 0px 5px;
position: absolute;
background-color: #345;
top: -3px;
left: -3px;
text-transform:none;
font-size:1em;
font-family: “Helvetica Neue”,Helvetica,Arial,sans-serif;
}
`

DomainExposuresHeadersLast Checked
l*a*n.c*d*r*p*r*s.com (WP 6.9.4) F 2026-05-16 09:55:21
d*n*e*e*a*s*.com (WP 6.9.4) F 2026-05-16 04:19:06
m*r*o*d*s*m.com F 2026-05-15 07:51:17
j*r*m*b*u*.com (WP 6.9.4) F 2026-05-12 10:28:25
l*n*o*n*a*g*d*.com (WP 6.8.5) F 2026-05-11 05:26:14
j*v*o.rs 🔓 F 2026-05-10 21:46:55
k*.g*y.io (WP 6.9.4) F 2026-05-10 19:36:20
c*n*.ca (WP 6.9.4) F 2026-05-10 10:38:03
s*s*e*c*a*t*m*n.com (WP 6.9.4) F 2026-05-10 10:03:39
p*n*h*l*t*o*m.com (WP 6.9.4) F 2026-05-10 05:00:45
b*n*f*t*t*.com (WP 6.7.1) F 2026-05-09 18:34:04
p*i*a*s.com (WP 6.8.3) F 2026-05-09 18:28:44
m*r*s*b*o*.com (WP 6.9.4) F 2026-05-09 09:25:25
c*n*r*l*y*a*.com (WP 6.9.4) F 2026-05-09 07:19:02
g*l*e*-*i*q*i*.com F 2026-05-09 06:51:03
c*d*w*t*a*h*v*l*e.com F 2026-05-09 04:46:53
p*a*o*.com F 2026-05-08 13:10:55
p*s*a*a*n*u*g.de (WP 6.9.4) F 2026-05-08 01:21:27
e*l*b*.com (WP 6.9.4) F 2026-05-07 22:46:36
b*n*f*t.sg (WP 6.7.1) F 2026-05-07 21:25:31
b*r*.rs F 2026-05-07 18:53:39
c*a*.de (WP 6.9.4) F 2026-05-07 18:15:25
s*i*u*1*.com (WP 6.9.4) F 2026-05-07 15:45:09
s*i*n*m*n*.com (WP 6.9.4) F 2026-05-07 15:28:27
c*o*d*a*i*e*a*k*.com (WP 6.9.4) F 2026-05-07 13:42:54
b*h*a*.com (WP 6.9.4) C 2026-05-07 04:48:25
s*d*g*o*e.com (WP 6.9.4) F 2026-05-04 05:17:52
d*g*t*l*c*u*t*r*u*i.ch (WP 6.9.4) F 2026-05-03 10:23:55
d*p*a*a*m*s*r*.com (WP 6.9.4) C 2026-05-03 01:21:36
s*m*a*e*g*m*s.com (WP 6.9.4) F 2026-05-02 07:59:43
0*5*o*u*i*n.com (WP 6.1.10) ⚠️ F 2026-05-02 02:29:48
m*r*h*n*a*.com (WP 6.9.4) F 2026-05-01 16:13:28
q*e*f*c*.io (WP 6.9.4) F 2026-05-01 09:08:40
d*t*a*h*o*g.org F 2026-04-29 01:18:55
p*e*i*n*r*i*i*g.com (WP 6.8.3) F 2026-04-28 21:48:32
p*e*i*n*a*a.com (WP 6.8.3) F 2026-04-28 21:48:32
v*i*e*.com (WP 6.9.4) F 2026-04-28 03:46:57
n*r*v*s*m.com B 2026-04-27 23:21:19
d*i*v*n*v.com (WP 6.9.4) F 2026-04-27 19:03:46
t*e*o*o*k*f*a.com (WP 6.9.4) F 2026-04-27 10:46:04
f*y*i*h*.com (WP 6.9.4) F 2026-04-27 04:22:03
o*e*v*b*.i*r*a.fr D 2026-04-26 22:19:34
p*c.edu F 2026-04-26 17:35:29
c*d*w*t*a*h*v*l*e.org F 2026-04-25 22:45:27
r*o*c*c.com (WP 6.9.4) F 2026-04-25 15:11:30
s*g*i*t*o*t*a*e.com (WP 6.8.3) F 2026-04-23 14:50:07
s*l*r*p*a*i*.de (WP 6.8.5) B 2026-04-22 04:44:59
r*b*n*e*k*.com (WP 6.2.9) ⚠️ 🔓 F 2026-04-22 00:58:41
c*c*r*r.com (WP 6.9.4) F 2026-04-21 19:31:06
h*v*s.com (WP 6.9.4) F 2026-04-20 14:29:58
t*y*m*.com (WP 6.9.4) F 2026-04-19 13:18:20
h*d*v*p*.com (WP 6.7.5) F 2026-04-18 21:24:00
o*e*a*e*t*y.com F 2026-04-18 17:36:57
o*e*t*i*g*a*.com (WP 6.8.5) F 2026-04-18 17:28:15
h*y*m*.com (WP 6.9.4) F 2026-04-18 13:01:22
e*o*e*.xyz B 2026-04-17 07:35:11
k*s*a*i*e*a*k*.com (WP 6.9.4) F 2026-04-13 14:25:13
s*l*r*p*a*i*.com (WP 6.8.5) B 2026-04-13 03:01:31

Top 50 Plugins

Plugin Count
elementor 1,721,105
contact-form-7 1,685,294
elementor-pro 999,304
woocommerce 786,554
revslider 599,384
jetpack 452,954
js_composer 415,749
wp-rocket 316,029
essential-addons-for-elementor-lite 273,477
gravityforms 253,022
complianz-gdpr 233,053
instagram-feed 217,924
cookie-law-info 214,766
google-site-kit 208,279
google-analytics-for-wordpress 207,615
sitepress-multilingual-cms 207,409
header-footer-elementor 204,164
elementskit-lite 193,554
bluehost-wordpress-plugin 188,313
gutenberg-core 156,721
gutenberg 154,225
cookie-notice 134,382
wpforms-lite 129,474
the-events-calendar 123,907
astra-sites 120,822
gtranslate 120,541
litespeed-cache 120,096
popup-maker 112,422
woocommerce-payments 110,228
tablepress 97,979
coblocks 97,532
all-in-one-seo-pack 91,440
astra-addon 90,261
honeypot 89,704
wp-smushit 89,582
LayerSlider 88,978
bb-plugin 88,239
duracelltomi-google-tag-manager 87,158
premium-addons-for-elementor 83,317
akismet 83,190
cleantalk-spam-protect 81,961
mailchimp-for-wp 81,116
megamenu 80,003
woocommerce-gateway-stripe 79,195
fusion-builder 76,704
formidable 75,232
ewww-image-optimizer 73,968
gravityformsrecaptcha 73,146
smart-slider-3 73,145
wp-pagenavi 72,189

Top 50 Themes

Theme Count
hello-elementor 586,319
Divi 493,535
astra 411,315
Avada 119,968
flatsome 117,032
generatepress 110,901
pub 108,048
oceanwp 79,829
kadence 73,971
enfold 68,268
salient 64,353
h4 55,377
twentyseventeen 54,074
bb-theme 53,829
twentytwentyfour 52,480
cocoon-master 51,035
betheme 49,803
blocksy 47,624
dt-the7 43,668
twentytwentyfive 42,467
neve 37,346
Avada-Child-Theme 35,891
gox 32,235
twentytwentyone 32,055
bridge 31,862
woodmart 31,423
lightning 29,188
twentytwenty 29,181
swell 27,115
Impreza 24,772
twentytwentythree 24,425
bricks 24,393
Newspaper 21,625
twentytwentytwo 20,164
epik-redesign 19,414
uncode 18,009
pro 17,590
twentysixteen 17,501
storefront 17,162
extendable 16,272
sydney 16,178
Total 14,023
yith-wonder 13,972
voxel 13,866
themify-ultra 12,752
hello-theme-child-master 12,405
hestia 12,206
twentynineteen 12,120
yootheme 12,020
factory-templates-4 11,860