Skip to content

Commit

Permalink
v2.0 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vaakash committed Aug 3, 2024
1 parent df491fa commit 420e329
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions git-it-write.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
Description: Publish markdown files present in a Github repository as posts to WordPress automatically
Author: Aakash Chakravarthy
Author URI: https://www.aakashweb.com/
Version: 1.9
Version: 2.0
*/

define( 'GIW_VERSION', '1.9' );
define( 'GIW_VERSION', '2.0' );
define( 'GIW_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
define( 'GIW_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );

Expand Down
1 change: 1 addition & 0 deletions includes/publisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function __construct( GIW_Repository $repository, $repo_config ){
$this->uploaded_images = GIW_Utils::get_uploaded_images();

$this->parsedown = new GIW_Parsedown();
$this->parsedown->setUrlsLinked(false);
$this->parsedown->uploaded_images = $this->uploaded_images;

$this->allowed_file_types = Git_It_Write::allowed_file_types();
Expand Down
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ the post type supports "hierarchy" i.e. creating posts level by level, like `/pa

**File structure in the GitHub repository:**

docs\
guide\
docs/
guide/
introduction.md
getting-started.md
help\
help/
faq.md

**Generated web sides:**
Expand Down Expand Up @@ -69,7 +69,7 @@ the post type supports "hierarchy" i.e. creating posts level by level, like `/pa

### 🥗 Recommendation

It is recommended that a permalink structure is enabled in the WordPress site so that, if you have file under `docs\reference\my-post.md` then a post is published like `https://example.com/docs/reference/my-post/`. This will be the result when post type has hierarchy support. They will be posted level by level for every folder in the repository. The folder's post will be taken from the `index.md` file if exists under that folder.
It is recommended that a permalink structure is enabled in the WordPress site so that, if you have file under `docs/reference/my-post.md` then a post is published like `https://example.com/docs/reference/my-post/`. This will be the result when post type has hierarchy support. They will be posted level by level for every folder in the repository. The folder's post will be taken from the `index.md` file if exists under that folder.

### 🏃‍♂️ Using the plugin

Expand Down Expand Up @@ -114,4 +114,4 @@ Yes, if you want to pull posts from a branch in a repository then you can specif

### Can I pull posts from a specific folder in the repository ?

Yes, if you want to pull posts from the folder in a repository then you can specify it in the plugin's repository settings page. For example, if a repository has a folder `website\main\docs` and if you want to pull only from docs folder, then you can specify `website\main\docs` in the plugin settings.
Yes, if you want to pull posts from the folder in a repository then you can specify it in the plugin's repository settings page. For example, if a repository has a folder `website/main/docs` and if you want to pull only from docs folder, then you can specify `website/main/docs` in the plugin settings.
13 changes: 8 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
Contributors: vaakash
Author URI: https://www.aakashweb.com/
Plugin URI: https://www.aakashweb.com/wordpress-plugins/git-it-write/
Tags: github, markdown, editor, publish, posts, wordpress, import, custom post types
Tags: github, markdown, editor, publish, posts
Donate link: https://www.paypal.me/vaakash/
License: GPLv2 or later
Requires PHP: 5.3
Requires at least: 4.4
Tested up to: 6.5.2
Stable tag: 1.9
Tested up to: 6.6.1
Stable tag: 2.0

Publish markdown files present in a GitHub repository as posts to WordPress automatically

Expand Down Expand Up @@ -77,7 +77,7 @@ Then below posts will be created like below (if permalinks are configured and th

### 🥗 Recommendation

It is recommended that a permalink structure is enabled in the WordPress site so that, if you have file under `docs\reference\my-post.md` then a post is published like `https://example.com/docs/reference/my-post/`. This will be the result when post type has hierarchy support. They will be posted level by level for every folder in the repository. The folder's post will be taken from the `index.md` file if exists under that folder.
It is recommended that a permalink structure is enabled in the WordPress site so that, if you have file under `docs/reference/my-post.md` then a post is published like `https://example.com/docs/reference/my-post/`. This will be the result when post type has hierarchy support. They will be posted level by level for every folder in the repository. The folder's post will be taken from the `index.md` file if exists under that folder.

### 🏃‍♂️ Using the plugin

Expand Down Expand Up @@ -126,7 +126,7 @@ Yes, if you want to pull posts from a branch in a repository then you can specif

### Can I pull posts from a specific folder in the repository ?

Yes, if you want to pull posts from a folder in a repository then you can specify it in the plugin's repository settings page. For example, if a repository has a folder `website\main\docs` and if you want to pull only from docs folder, then you can specify `website\main\docs` in the plugin settings.
Yes, if you want to pull posts from a folder in a repository then you can specify it in the plugin's repository settings page. For example, if a repository has a folder `website/main/docs` and if you want to pull only from docs folder, then you can specify `website/main/docs` in the plugin settings.


## Screenshots
Expand All @@ -142,6 +142,9 @@ Yes, if you want to pull posts from a folder in a repository then you can specif

## Changelog

### 2.0
* Fix: Disable inline URLs from being converted to link tags. (Thanks to @SienciLabs for the report)

### 1.9
* Fix: Filename with multiple dots are ignored.

Expand Down

0 comments on commit 420e329

Please sign in to comment.