Skip to content

Commit ae7358e

Browse files
committed
Merge branch 'release/1.5.2'
2 parents 353ea22 + e23bc2b commit ae7358e

29 files changed

+393
-14
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# v1.5.2
2+
## 05/19/2021
3+
4+
1. [](#new)
5+
* Added basic TailwindCSS theme [#65](https://github.com/getgrav/grav-plugin-devtools/pull/65)
6+
1. [](#improved)
7+
* Fixed typo [#67](https://github.com/getgrav/grav-plugin-devtools/pull/67)
8+
* Use canonical URLs [#58](https://github.com/getgrav/grav-plugin-devtools/pull/58)
9+
* Replace `theme_config` with `config.theme` [#60](https://github.com/getgrav/grav-plugin-devtools/pull/60)
10+
1. [](#bugfix)
11+
* Fixed a bad path regarding composer install after plugin creation
12+
113
# v1.5.1
214
## 03/17/2021
315

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ By default, devtools will perform a check with the online gpm repository to ensu
2626

2727
## Plugin Scaffolding
2828

29-
To create a new plugin you simply need to run: `bin/plugin devtools newplugin` and fill in the few questions at the prompts:
29+
To create a new plugin you simply need to run: `bin/plugin devtools new-plugin` and fill in the few questions at the prompts:
3030

3131
```
32-
> bin/plugin devtools newplugin
32+
> bin/plugin devtools new-plugin
3333
Enter Plugin Name: MyPlugin
3434
Enter Plugin Description: My New Custom Plugin
3535
Enter Developer Name: Johnny Rotten

blueprints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: DevTools
22
slug: devtools
33
type: plugin
4-
version: 1.5.1
4+
version: 1.5.2
55
description: Plugin and Theme scaffolding utilities
66
icon: cogs
77
author:

classes/DevToolsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ protected function createComponent(): bool
244244
$this->output->writeln('Path: <cyan>' . $component_folder . '</cyan>');
245245
$this->output->writeln('');
246246
if ($type === 'plugin') {
247-
$this->output->writeln('<yellow>Please run `cd user/plugins/' . $name . '` and `composer update` to initialize the autoloader</yellow>');
247+
$this->output->writeln('<yellow>Please run `cd ' . $component_folder . '` and `composer update` to initialize the autoloader</yellow>');
248248
$this->output->writeln('');
249249
}
250250

cli/NewThemeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ protected function serve(): int
131131

132132
$question = new ChoiceQuestion(
133133
'Please choose an option',
134-
['pure-blank' => 'Basic Theme using Pure.css', 'inheritance' => 'Inherit from another theme', 'copy' => 'Copy another theme']
134+
['pure-blank' => 'Basic Theme using Pure.css', 'tailwind' => 'Basic Theme using tailwind.css', 'inheritance' => 'Inherit from another theme', 'copy' => 'Copy another theme']
135135
);
136136
$this->component['template'] = $io->askQuestion($question);
137137

components/plugin/blank/plugin.php.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ class {{ component.name|camelize }}Plugin extends Plugin
3232
}
3333
3434
/**
35-
* Composer autoload.
36-
*is
37-
* @return ClassLoader
38-
*/
35+
* Composer autoload
36+
*
37+
* @return ClassLoader
38+
*/
3939
public function autoload(): ClassLoader
4040
{
4141
return require __DIR__ . '/vendor/autoload.php';

components/theme/inheritance/theme.yaml.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ streams:
44
type: ReadOnlyStream
55
prefixes:
66
'':
7-
- user/themes/{{ component.name|hyphenize }}
8-
- user/themes/{{ component.extends }}
7+
- 'user://themes/{{ component.name|hyphenize }}'
8+
- 'user://themes/{{ component.extends }}'
99

1010
{{ component.config }}

components/theme/pure-blank/templates/partials/base.html.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
21
<!DOCTYPE html>
32
<html lang="{{ (grav.language.getActive ?: grav.config.site.default_lang)|e }}">
43
<head>
@@ -11,7 +10,7 @@
1110
{% include 'partials/metadata.html.twig' %}
1211

1312
<link rel="icon" type="image/png" href="{{ url('theme://images/logo.png')|e }}" />
14-
<link rel="canonical" href="{{ page.url(true, true)|e }}" />
13+
<link rel="canonical" href="{{ page.canonical(true)|e }}" />
1514
{% endblock head %}
1615

1716
{% block stylesheets %}

components/theme/pure-blank/templates/partials/navigation.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
{% endmacro %}
2424

2525
<ul>
26-
{% if theme_config.dropdown.enabled %}
26+
{% if config.theme.dropdown.enabled %}
2727
{{ _self.loop(pages) }}
2828
{% else %}
2929
{% for page in pages.children.visible %}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# v0.1.0
2+
## {{ "now"|date("m/d/Y") }}
3+
4+
1. [](#new)
5+
* ChangeLog started...

0 commit comments

Comments
 (0)