You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo'<p class="description">The name of the Github repository to pull and publish posts from</p>';
210
+
echo'<p class="description">The name of the GitHub repository to pull and publish posts from</p>';
211
211
echo'</td>';
212
212
echo'</tr>';
213
213
@@ -247,7 +247,7 @@ public static function edit_repo( $action = 'edit' ){
247
247
'teeny' => true,
248
248
'textarea_rows' => 4
249
249
));
250
-
echo'<p class="description">The template of the post content. Use any text, HTML, shortcode you would like to be added to all the posts when they are published. Supported placeholder <code>%%content%%</code> (The HTML of the pulled post). Use shortcode <code>[giw_edit_link]</code> to insert a link of the source Github file to edit and collaborate. You might need to "Pull all the files" to update the post if the template is changed.</p>';
250
+
echo'<p class="description">The template of the post content. Use any text, HTML, shortcode you would like to be added to all the posts when they are published. Supported placeholder <code>%%content%%</code> (The HTML of the pulled post). Use shortcode <code>[giw_edit_link]</code> to insert a link of the source GitHub file to edit and collaborate. You might need to "Pull all the files" to update the post if the template is changed.</p>';
251
251
echo'</td>';
252
252
echo'</tr>';
253
253
@@ -302,7 +302,7 @@ public static function pull_posts(){
302
302
303
303
$id = $g[ 'id' ];
304
304
305
-
echo'<h2>Pull posts from Github for [' . esc_html( $id ) . ']</h2>';
305
+
echo'<h2>Pull posts from GitHub for [' . esc_html( $id ) . ']</h2>';
306
306
307
307
echo'<table class="widefat striped">';
308
308
echo'<tbody>
@@ -375,22 +375,22 @@ public static function general_settings(){
echo'<p class="description">Go to Github repository settings --> Webhook and add a webhook for the payload URL <code>' . esc_html( rest_url( '/giw/v1/publish' ) ) . '</code> if you would like to automatically publish the changes whenever repository is updated.</p>';
378
+
echo'<p class="description">Go to GitHub repository settings --> Webhook and add a webhook for the payload URL <code>' . esc_html( rest_url( '/giw/v1/publish' ) ) . '</code> if you would like to automatically publish the changes whenever repository is updated.</p>';
379
379
echo'<p class="description">Select content-type as <code>application/json</code> and enter a secret text. Provide the same secret text in the above field. Select "Just the push event" for the webhook trigger. Make sure all the repositories you would like to automatically update have the same payload URL and the secret.</p>';
echo'<p class="description">Create an access token by following <a href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-token" target="_blank">the instructions here.</a> Select <code>repo -> public_repo</code> under scopes and generate a token.
395
395
</p></td>';
396
396
echo'</tr>';
@@ -499,9 +499,9 @@ public static function sidebar(){
Publish markdown files present in a Github repository as posts to WordPress automatically
13
+
Publish markdown files present in a GitHub repository as posts to WordPress automatically
14
14
15
15
16
16
17
17
## Description
18
18
19
-
Git it Write allows to publish the markdown files present in a Github repository to your WordPress site. So with this plugin, whenever the files are added, updated in the repository the WordPress post will be added, updated accordingly.
19
+
Git it Write allows to publish the markdown files present in a GitHub repository to your WordPress site. So with this plugin, whenever the files are added, updated in the repository the WordPress post will be added, updated accordingly.
20
20
21
-
This plugin is inspired from static site generators like `Jekyll`, `Next.js`, `Gatsby.js` on how content is written is markdown. This is a similar idea for WordPress where markdown files are parsed from Github and published as posts.
21
+
This plugin is inspired from static site generators like `Jekyll`, `Next.js`, `Gatsby.js` on how content is written is markdown. This is a similar idea for WordPress where markdown files are parsed from GitHub and published as posts.
⚡ **Getting started:** [Get started](https://www.aakashweb.com/docs/git-it-write/getting-started/) with Git it write. Learn how to write `.md` files and publish posts on WordPress.
26
26
27
-
This allows people to collaborate with the post, share edits and suggestions in Github which when pulled the WordPress post will be updated automatically.
27
+
This allows people to collaborate with the post, share edits and suggestions in GitHub which when pulled the WordPress post will be updated automatically.
28
28
29
29
If a repository has files in the below structure,
30
30
@@ -43,10 +43,10 @@ Then below posts will be created like below (if permalinks are configured and th
43
43
44
44
### 🎲 What is the use of this plugin ?
45
45
46
-
* Publish posts using the files in your Github repository.
46
+
* Publish posts using the files in your GitHub repository.
47
47
* Write your posts in Markdown format.
48
48
* Write your posts on your desktop application (Notepad++, Sublime Text, Visual studio code).
49
-
* Collaborate, involve communities on the files in Github and publish them on WordPress.
49
+
* Collaborate, involve communities on the files in GitHub and publish them on WordPress.
50
50
* All the advantages of Git and it's version management system.
51
51
52
52
### 🚀 Some use cases
@@ -70,7 +70,7 @@ Then below posts will be created like below (if permalinks are configured and th
70
70
### ℹ Note
71
71
72
72
* Only Markdown files will be pulled and published right now
73
-
* Posts won't be deleted when it's source file is deleted on Github.
73
+
* Posts won't be deleted when it's source file is deleted on GitHub.
74
74
* It is preferred to have a permalink structure.
75
75
* It is preferred to select a post type which supports hierarchy.
76
76
* Images have to present only in `_images` folder in the repository root. Markdown files have to relatively use them in the file.
@@ -81,7 +81,7 @@ It is recommended that a permalink structure is enabled in the WordPress site so
81
81
82
82
### 🏃♂️ Using the plugin
83
83
84
-
1. Have a Github repository where all the source files (markdown files) are maintained (organized in folders if needed the exact structure)
84
+
1. Have a GitHub repository where all the source files (markdown files) are maintained (organized in folders if needed the exact structure)
85
85
1. In the plugin settings page, click add a new repository.
86
86
1. Enter the details of the repository to pull the posts from and under what post type to publish them.
87
87
1. Save the settings
@@ -93,7 +93,7 @@ It is recommended that a permalink structure is enabled in the WordPress site so
0 commit comments