Skip to content

Commit

Permalink
Fix emoji, use 99.x branch
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Jan 6, 2025
1 parent 267ff64 commit 99d1216
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Build docs site

on:
push:
# zActions is used to build and preview mkdocs changes.
branches: [ 11.x, 12.x, 13.x, zActions ]
# 99.x is used to build and preview mkdocs changes.
branches: [ 11.x, 12.x, 13.x, 99.x ]
tags: ["11.*", "12.*", "13.*"]

jobs:
Expand Down
Empty file.
30 changes: 0 additions & 30 deletions docs/overrides/partials/tabsBAK.html

This file was deleted.

4 changes: 4 additions & 0 deletions mkdocs_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ extra:
# Concerned about surveillance and spam so not enabling disqus for now.
# disqus: drush
markdown_extensions:
- attr_list
- toc:
permalink: true
- admonition: { }
Expand All @@ -70,6 +71,9 @@ markdown_extensions:
- pymdownx.superfences: { }
- pymdownx.tabbed:
alternate_style: true
- pymdownx.emoji:
emoji_index: '!!python/name:material.extensions.emoji.twemoji'
emoji_generator: '!!python/name:material.extensions.emoji.to_svg'
nav:
- Home: index.md
- Use:
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/core/MkCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ protected function writeYml(array $nav_commands, array $nav_generators, array $m
$yaml_nav = Yaml::dump($base, PHP_INT_MAX, 2);

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

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

0 comments on commit 99d1216

Please sign in to comment.