Skip to content

Commit 99d1216

Browse files
committed
Fix emoji, use 99.x branch
1 parent 267ff64 commit 99d1216

File tree

5 files changed

+8
-34
lines changed

5 files changed

+8
-34
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Build docs site
22

33
on:
44
push:
5-
# zActions is used to build and preview mkdocs changes.
6-
branches: [ 11.x, 12.x, 13.x, zActions ]
5+
# 99.x is used to build and preview mkdocs changes.
6+
branches: [ 11.x, 12.x, 13.x, 99.x ]
77
tags: ["11.*", "12.*", "13.*"]
88

99
jobs:

docs/overrides/partials/.gitkeep

Whitespace-only changes.

docs/overrides/partials/tabsBAK.html

-30
This file was deleted.

mkdocs_base.yml

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ extra:
5151
# Concerned about surveillance and spam so not enabling disqus for now.
5252
# disqus: drush
5353
markdown_extensions:
54+
- attr_list
5455
- toc:
5556
permalink: true
5657
- admonition: { }
@@ -70,6 +71,9 @@ markdown_extensions:
7071
- pymdownx.superfences: { }
7172
- pymdownx.tabbed:
7273
alternate_style: true
74+
- pymdownx.emoji:
75+
emoji_index: '!!python/name:material.extensions.emoji.twemoji'
76+
emoji_generator: '!!python/name:material.extensions.emoji.to_svg'
7377
nav:
7478
- Home: index.md
7579
- Use:

src/Commands/core/MkCommands.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ protected function writeYml(array $nav_commands, array $nav_generators, array $m
237237
$yaml_nav = Yaml::dump($base, PHP_INT_MAX, 2);
238238

239239
// Remove invalid quotes that Symfony YAML adds/needs. https://github.com/symfony/symfony/blob/6.1/src/Symfony/Component/Yaml/Inline.php#L624
240-
$yaml_nav = str_replace("'!!python/name:materialx.emoji.twemoji'", '!!python/name:materialx.emoji.twemoji', $yaml_nav);
241-
$yaml_nav = str_replace("'!!python/name:materialx.emoji.to_svg'", '!!python/name:materialx.emoji.to_svg', $yaml_nav);
240+
$yaml_nav = str_replace("'!!python/name:material.extensions.emoji.twemoji'", '!!python/name:material.extensions.emoji.twemoji', $yaml_nav);
241+
$yaml_nav = str_replace("'!!python/name:material.extensions.emoji.to_svg'", '!!python/name:material.extensions.emoji.to_svg', $yaml_nav);
242242

243243
file_put_contents(Path::join($dest, 'mkdocs.yml'), $yaml_nav);
244244
}

0 commit comments

Comments
 (0)