Skip to content

Commit

Permalink
Merge pull request #444 from verdigado/deploy
Browse files Browse the repository at this point in the history
publishing version 2.0.3
  • Loading branch information
albig authored Nov 17, 2023
2 parents 9697fa4 + a856356 commit c3bf7e2
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 93 deletions.
100 changes: 22 additions & 78 deletions changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,20 @@

<body>
<h1>Changelogs</h1>
<h2>Neu in 2.0.2</h2>
<h2>Neu in der neuesten Version (2023-11-17)</h2>
<ul>
<li>Set end of event to start of event in Datepicker</li>
<li>Make jsdocs linter happy</li>
<li>Update npm packages</li>
<li>Fix block background with color gray</li>
<li>Update project github repo in documentation</li>
<li>Remove unused files from git repo</li>
<li>Remove usage of forkawesome and use fontsawesome instead</li>
<li>Fix some backend CSS issues with new CI</li>
<li>Use "Update URI" header for better update checks</li>
</ul>

<h2>Neu in v2.0.2 (2023-11-10)</h2>
<ul>
<li>Avoid iterate over undefined list</li>
<li>Fix ics character encoding and length of description field</li>
Expand All @@ -16,13 +29,13 @@ <h2>Neu in 2.0.2</h2>
<li>Show option to enable theme autoupdate if theme is up to date</li>
</ul>

<h2>Neu in v2.0.1</h2>
<h2>Neu in v2.0.1 (2023-11-06)</h2>
<ul>
<li>Fix workflow for deployment</li>
<li>update fonts for safari</li>
</ul>

<h2>Neu in v2.0.0</h2>
<h2>Neu in v2.0.0 (2023-11-03)</h2>
<ul>
<li>Update documenation about publish new versions (#422)</li>
<li>Add the new CI 2023 (#416)</li>
Expand All @@ -31,7 +44,7 @@ <h2>Neu in v2.0.0</h2>
<li>Fix workflow target of documentation</li>
</ul>

<h2>Neu in v1.8.4</h2>
<h2>Neu in v1.8.4 (2023-11-02)</h2>
<ul>
<li>Fix deployment workflow</li>
<li>Add space between 'E-Mail' label and the actual email</li>
Expand All @@ -49,12 +62,12 @@ <h2>Neu in v1.8.4</h2>
<li>Update npm packages</li>
</ul>

<h2>Neu in v1.8.3</h2>
<h2>Neu in v1.8.3 (2023-01-16)</h2>
<ul>
<li>add reply-to header</li>
</ul>

<h2>Neu in v1.8.2</h2>
<h2>Neu in v1.8.2 (2023-01-04)</h2>
<ul>
<li>load popper before jquery for fixing mobile menu bug</li>
<li>add accordion class</li>
Expand All @@ -63,14 +76,14 @@ <h2>Neu in v1.8.2</h2>
<li>add pa11y</li>
</ul>

<h2>Neu in v1.8.1</h2>
<h2>Neu in v1.8.1 (2022-12-19)</h2>
<ul>
<li>fix color</li>
<li>typo</li>
<li>typo</li>
</ul>

<h2>Neu in v1.8.0</h2>
<h2>Neu in v1.8.0 (2022-12-19)</h2>
<ul>
<li>add styles to accordion</li>
<li>add sidebar to archive</li>
Expand All @@ -82,79 +95,10 @@ <h2>Neu in v1.8.0</h2>
<li>lint</li>
</ul>

<h2>Neu in v1.7.6</h2>
<h2>Neu in v1.7.6 (2022-07-27)</h2>
<ul>
<li>fix ticket 361: show all event tags in block</li>
</ul>

<h2>Neu in v1.7.5</h2>
<ul>
</ul>

<h2>Neu in v1.7.4</h2>
<ul>
<li>add vtimezone to icals</li>
</ul>

<h2>Neu in v1.7.3</h2>
<ul>
</ul>

<h2>Neu in v1.7.2</h2>
<ul>
<li>hide user in posts in api when wanted</li>
<li>add phpcs for WP</li>
<li>lint</li>
<li>add lightbox</li>
<li>add styles for subtheme</li>
<li>add theme support in wp-config</li>
<li>fix and refactor theme toggler</li>
<li>use themed variables for all fonts</li>
<li>introduce theming in sass</li>
<li>use generic heading font name</li>
<li>do not use ptsans font name in php</li>
<li>do not use fontname in php</li>
<li>add custom logo support</li>
<li>update make tasks</li>
</ul>

<h2>Neu in v1.7.1</h2>
<ul>
<li>hide version2 feature while wip</li>
<li>hide feature image on single</li>
<li>add make task for convenience</li>
<li>show social media icons in header</li>
<li>linting</li>
<li>change gitignore</li>
<li>fix: render blocking ressources in blocks</li>
<li>add make task</li>
<li>add button to increase contrast</li>
<li>introduce contrast-mode</li>
<li>fix php-error in backend if roofline is not set</li>
<li>add permalink to latest posts block</li>
<li>do not touch api for logged in users</li>
<li>fix error at blocl templates for pesons</li>
<li>add ics calendar feed</li>
</ul>

<h2>Neu in v1.7.0</h2>
<ul>
<li>fix forms for non super-admins in multisite</li>
<li>change label</li>
<li>add aria-labels</li>
<li>auto format really all php files</li>
<li>autoformat all php-files</li>
<li>remove mobile from test</li>
<li>introduce linting</li>
<li>do not recommend plugins</li>
<li>introduce make tasks for nightl builds</li>
<li>import past events also</li>
<li>fix manual</li>
<li>update make-pot task</li>
<li>add translation</li>
<li>fix typo</li>
<li>add option to hide previous and next links</li>
</ul>

</body>
</html>
26 changes: 13 additions & 13 deletions create-changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,14 @@
<h1>Changelogs</h1>
';

exec( 'git tag', $tags );
$tags = array_reverse( $tags );
exec( 'git tag -l --sort=-creatordate --format="%(creatordate:short);%(refname:short)" | head -n 10', $tags );

$output .= read_commits_between_tags( 'HEAD', $tags[0] );
$output .= read_commits_between_tags( ['', 'HEAD'], explode(';', $tags[0]) );

for ( $i = 0; $i < count( $tags ); $i++ ) {
for ( $i = 0; $i < count( $tags ) - 1; $i++ ) {

$output .= read_commits_between_tags( $tags[ $i ], $tags[ $i + 1 ] );
$output .= read_commits_between_tags( explode(';', $tags[ $i ]), explode(';', $tags[ $i + 1 ]) );

if ( $tags[ $i ] == 'v1.7.0' ) {
break;
}
}

$output .= '</body>
Expand All @@ -34,13 +30,17 @@

function read_commits_between_tags( $from, $to ) {
global $argv;
exec( sprintf( 'git log --pretty=format:"%%s" %s...%s', $from, $to ), $commits );
exec( sprintf( 'git log --pretty=format:"%%s" %s...%s', $from[1], $to[1] ), $commits );

if ( $from === 'HEAD' ) {
$from = ( isset( $argv[1] ) ) ? $argv[1] : 'der neuesten Version';
}
if ( $from[1] === 'HEAD' ) {
$from_str = ( isset( $argv[1] ) ) ? $argv[1] : 'der neuesten Version';
$time = date('Y-m-d');
} else {
$from_str = $from[1];
$time = $from[0];
}

return sprintf( "<h2>Neu in %s</h2>\n<ul>\n%s</ul>\n\n", $from, add_commit_messages( $commits ) );
return sprintf( "<h2>Neu in %s (%s)</h2>\n<ul>\n%s</ul>\n\n", $from_str, $time, add_commit_messages( $commits ) );
}


Expand Down
4 changes: 2 additions & 2 deletions sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Theme URI: https://sunflower-theme.de
Author: verdigado eG
Author URI: https://verdigado.com
Description: Theme for the German Green Party
Version: 2.0.2
Tested up to: 6.3
Version: 2.0.3
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Expand Down

0 comments on commit c3bf7e2

Please sign in to comment.