热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Octiconsgotmissing

Therearewrapperspoilersforinfoinreport[x]the


There are wrapper spoilers for info in report


  • [x] ... the documentation does not mention anything about my problem

  • [ ] ... the problem doesn't occur with the default MkDocs template

  • [ ] ... the problem is not in any of my customizations (CSS, JS, template)

  • [x] ... there are no open or closed issues that are related to my problem

Description

From the get-go, during debugging in Gitter

1
martinbira

helped to notice that Octicons support got missing on the project front page: https://squidfunk.github.io/mkdocs-material/extensions/pymdown/#icons, observe there is literal

1
:octicons-octoface:

there.

Original bug report message:

I am having a trivial problem. I migrate from v4 to v5.

1
2
3
4
5
yaml

extra:

  social:

    - icon: octicons/mark-github

      link: 'https://github.com/Anton-Latukha'

Docs, not directly, tell that Octicons seems to be supported out of the box, and that they live in the

1
octicons

namespace.

I exhausted variants,

1
octicons

or

1
octicon

or without namespace,

1
mark-github

or

1
github

.

As only

1
fontawesome

example covered in a docs, and indeed

1
fontawesome/brands/github-alt

works, but

1
octicons/mark-github

does not worked for me.

Wrapper: Error log:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
text

> docker run --rm -it -p 8000:8000 -v (pwd):/docs mkdocs-material build



INFO    -  Cleaning site directory

INFO    -  Building documentation to directory: /docs/Anton-Latukha.github.io

Traceback (most recent call last):

  File "/usr/local/bin/mkdocs", line 8, in

    sys.exit(cli())

  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 829, in __call__

    return self.main(*args, **kwargs)

  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 782, in main

    rv = self.invoke(ctx)

  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke

    return _process_result(sub_ctx.command.invoke(sub_ctx))

  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke

    return ctx.invoke(self.callback, **ctx.params)

  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 610, in invoke

    return callback(*args, **kwargs)

  File "/usr/local/lib/python3.8/site-packages/mkdocs/__main__.py", line 152, in build_command

    build.build(config.load_config(**kwargs), dirty=not clean)

  File "/usr/local/lib/python3.8/site-packages/mkdocs/commands/build.py", line 285, in build

    _build_theme_template(template, env, files, config, nav)

  File "/usr/local/lib/python3.8/site-packages/mkdocs/commands/build.py", line 108, in _build_theme_template

    output = _build_template(template_name, template, files, config, nav)

  File "/usr/local/lib/python3.8/site-packages/mkdocs/commands/build.py", line 87, in _build_template

    output = template.render(context)

  File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render

    self.environment.handle_exception()

  File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception

    reraise(*rewrite_traceback_stack(source=source))

  File "/usr/local/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise

    raise value.with_traceback(tb)

  File "/usr/local/lib/python3.8/site-packages/material/404.html", line 4, in top-level template code

    {% extends "base.html" %}

  File "/usr/local/lib/python3.8/site-packages/material/base.html", line 180, in top-level template code

    {% block footer %}

  File "/usr/local/lib/python3.8/site-packages/material/base.html", line 181, in block "footer"

    {% include "partials/footer.html" %}

  File "/usr/local/lib/python3.8/site-packages/material/partials/footer.html", line 55, in top-level template code

    {% include "partials/social.html" %}

  File "/usr/local/lib/python3.8/site-packages/material/partials/social.html", line 13, in top-level template code

    {% include ".icons/" ~ social.icon ~ ".svg" %}

  File "/usr/local/lib/python3.8/site-packages/jinja2/loaders.py", line 197, in get_source

    raise TemplateNotFound(template)

jinja2.exceptions.TemplateNotFound: .icons/octicons/mark-github.svg



Expected behavior


1
octicons/mark-github

to work and be provided as an example in the doc.

Actual behavior

Octicons are currently missing.

Steps to reproduce the bug

To reproduce:

I am using the freshest

1
master

1 "Prepare 5.3.3 release" commit 09e5e38a5ccd7cfaf07a58d81a95e3667d1d2d72.
2. On that checkout I use fresh current container build from the current Dockerfile.
3. So I receive

1
master

and rebase onto it a minor

1
Dockerfile

addition:

1
2
3
4
5
Dockerfile

RUN  pip install --no-cache-dir \

                 pygments \

                 pymdown-extensions \

                 mkdocs-htmlproofer-plugin

, which should not involve in the case of the report.

Package versions

Gathered from whithin Dockerfile container:
*

1
Python 3.8.1

*

1
mkdocs, version 1.1.2 from /usr/local/lib/python3.8/site-packages/mkdocs (Python 3.8)

* Material:

1
Version: 5.3.3

Project configuration

Currently:

Wrapper: `mkdocs.yml`:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
 yaml

# Project information

site_name: 'Latukha: Good day my friend!'

site_description: 'Official page of Anton Latukha'

site_author: 'Anton Latukha'

site_url: 'https://blog.latukha.com'

site_dir: 'Anton-Latukha.github.io'



# Structure

nav:

  - 'Home': 'index.md'

  - 'Biography': 'bio.md'

  - 'About': 'about.md'

  - Articles:

    - 'Fundamental Haskell notes': 'haskell-notes.html'

    - 'Integrating NixOS/Nix, Haskell IDE Engine, Emacs': 'NixOS-HIE-Emacs.md'

    - 'Restore of deleted LVM (Advanced)': '2017-05-04-Restore-of-deleted-LVM-(Advanced).md'

    - 'How to setup proxy to listen Spotify': '2017-04-14-How-to-setup-proxy-to-listen-Spotify.md'

    - 'SaltStack formulas': '2017-04-12-SaltStack-Formulas-install.md'



# Copyright

copyright: '2016-2019 Anton Latukha, Creative Commons ShareAlike'





# Documentation and theme

theme:

  name: 'material'

  palette:

    primary: 'deep purple'

    accent: 'deep purple'

  font:

    text: 'Ubuntu'

    code: 'Hack'

  icon:

    logo: 'assets/images/favicon-min.png'

  logo: 'assets/images/favicon-min.png'

  favicon: 'assets/images/favicon-min.png'

  features:

    - tabs

    - instant



# Repository

repo_name: 'Profile'

repo_url: 'https://github.com/Anton-Latukha'

edit_uri: '/mkdocs-blog/tree/master/docs'

remote_name: 'u'

remote_branch: 'master'

# repo_name: 'Site content on GitHub'

# repo_url: 'https://github.com/Anton-Latukha/Anton-Latukha.github.io'



# Options

extra:

  social:

    - icon: octicons/mark-github

      link: 'https://github.com/Anton-Latukha'

    - icon: 'fontawesome/brands/gitlab'

      link: 'https://gitlab.com/Anton.Latukha'

    - icon: 'fontawesome/brands/twitter'

      link: 'https://twitter.com/piroxiline'

    - icon: 'fontawesome/brands/linkedin'

      link: 'https://linkedin.com/in/anton-latukha-2a286690'

    - icon: 'octicons/heart'

      link: 'https://github.com/Anton-Latukha/Anton-Latukha.github.io/raw/master/assets/docs/AntonLatukhaCV.pdf'

    - icon: 'octicon/download'

      link: 'https://github.com/Anton-Latukha/Anton-Latukha.github.io/raw/master/assets/docs/AntonLatukhaCV.pdf'

    - icon: 'fontawesome/brands/linux'

      link: 'https://wiki.archlinux.org/index.php/Special:Contributions/Anton_Latukha'

    - icon: 'fontawesome/brands/linux'

      link: 'https://wiki.archlinux.org/index.php/Special:Contributions/PiroXiline'

  disqus: 'blog-latukha-com'



# Extensions

markdown_extensions:

  - admonition    # summaries, notes, hints or warnings.

  - codehilite:    # Table of Contents extension

      guess_lang: false

      linenums: true

  - toc:

      permalink: true

  - pymdownx.arithmatex    # Parse LaTeX formulas

  - pymdownx.betterem    # improves the handling of emphasis markup

  - pymdownx.superfences    # ability to nest code blocks under blockquotes, lists and other block elements

  - pymdownx.inlinehilite    # support for inline code highlighting

  - pymdownx.smartsymbols    # converts markup for special characters into their corresponding symbols



plugins:

  - search

  - minify

  - htmlproofer


System information


  • OS: Latest Mkdocs-material Docker Python Alpine.

该提问来源于开源项目:squidfunk/mkdocs-material

Oh, I see, it is a "style" difference.


推荐阅读
  • 树莓派语音控制的配置方法和步骤
    本文介绍了在树莓派上实现语音控制的配置方法和步骤。首先感谢博主Eoman的帮助,文章参考了他的内容。树莓派的配置需要通过sudo raspi-config进行,然后使用Eoman的控制方法,即安装wiringPi库并编写控制引脚的脚本。具体的安装步骤和脚本编写方法在文章中详细介绍。 ... [详细]
  • CF:3D City Model(小思维)问题解析和代码实现
    本文通过解析CF:3D City Model问题,介绍了问题的背景和要求,并给出了相应的代码实现。该问题涉及到在一个矩形的网格上建造城市的情景,每个网格单元可以作为建筑的基础,建筑由多个立方体叠加而成。文章详细讲解了问题的解决思路,并给出了相应的代码实现供读者参考。 ... [详细]
  • Go Cobra命令行工具入门教程
    本文介绍了Go语言实现的命令行工具Cobra的基本概念、安装方法和入门实践。Cobra被广泛应用于各种项目中,如Kubernetes、Hugo和Github CLI等。通过使用Cobra,我们可以快速创建命令行工具,适用于写测试脚本和各种服务的Admin CLI。文章还通过一个简单的demo演示了Cobra的使用方法。 ... [详细]
  • 安卓编年史(4):Android
    安卓0.9显示着横屏的主屏幕——后续一些版本无法实现的一个特性[RonAmadeo供图]尽管从功能上很难将模拟器和操作系统区分开,但安卓0.9是第一个支持横屏显示的版本。更让人惊讶 ... [详细]
  • 云原生边缘计算之KubeEdge简介及功能特点
    本文介绍了云原生边缘计算中的KubeEdge系统,该系统是一个开源系统,用于将容器化应用程序编排功能扩展到Edge的主机。它基于Kubernetes构建,并为网络应用程序提供基础架构支持。同时,KubeEdge具有离线模式、基于Kubernetes的节点、群集、应用程序和设备管理、资源优化等特点。此外,KubeEdge还支持跨平台工作,在私有、公共和混合云中都可以运行。同时,KubeEdge还提供数据管理和数据分析管道引擎的支持。最后,本文还介绍了KubeEdge系统生成证书的方法。 ... [详细]
  • 本文介绍了设计师伊振华受邀参与沈阳市智慧城市运行管理中心项目的整体设计,并以数字赋能和创新驱动高质量发展的理念,建设了集成、智慧、高效的一体化城市综合管理平台,促进了城市的数字化转型。该中心被称为当代城市的智能心脏,为沈阳市的智慧城市建设做出了重要贡献。 ... [详细]
  • Centos7.6安装Gitlab教程及注意事项
    本文介绍了在Centos7.6系统下安装Gitlab的详细教程,并提供了一些注意事项。教程包括查看系统版本、安装必要的软件包、配置防火墙等步骤。同时,还强调了使用阿里云服务器时的特殊配置需求,以及建议至少4GB的可用RAM来运行GitLab。 ... [详细]
  • baresip android编译、运行教程1语音通话
    本文介绍了如何在安卓平台上编译和运行baresip android,包括下载相关的sdk和ndk,修改ndk路径和输出目录,以及创建一个c++的安卓工程并将目录考到cpp下。详细步骤可参考给出的链接和文档。 ... [详细]
  • Android Studio Bumblebee | 2021.1.1(大黄蜂版本使用介绍)
    本文介绍了Android Studio Bumblebee | 2021.1.1(大黄蜂版本)的使用方法和相关知识,包括Gradle的介绍、设备管理器的配置、无线调试、新版本问题等内容。同时还提供了更新版本的下载地址和启动页面截图。 ... [详细]
  • 本文介绍了Hyperledger Fabric外部链码构建与运行的相关知识,包括在Hyperledger Fabric 2.0版本之前链码构建和运行的困难性,外部构建模式的实现原理以及外部构建和运行API的使用方法。通过本文的介绍,读者可以了解到如何利用外部构建和运行的方式来实现链码的构建和运行,并且不再受限于特定的语言和部署环境。 ... [详细]
  • 闭包一直是Java社区中争论不断的话题,很多语言都支持闭包这个语言特性,闭包定义了一个依赖于外部环境的自由变量的函数,这个函数能够访问外部环境的变量。本文以JavaScript的一个闭包为例,介绍了闭包的定义和特性。 ... [详细]
  • Go GUIlxn/walk 学习3.菜单栏和工具栏的具体实现
    本文介绍了使用Go语言的GUI库lxn/walk实现菜单栏和工具栏的具体方法,包括消息窗口的产生、文件放置动作响应和提示框的应用。部分代码来自上一篇博客和lxn/walk官方示例。文章提供了学习GUI开发的实际案例和代码示例。 ... [详细]
  • 本文介绍了在CentOS上安装Python2.7.2的详细步骤,包括下载、解压、编译和安装等操作。同时提供了一些注意事项,以及测试安装是否成功的方法。 ... [详细]
  • (三)多表代码生成的实现方法
    本文介绍了一种实现多表代码生成的方法,使用了java代码和org.jeecg框架中的相关类和接口。通过设置主表配置,可以生成父子表的数据模型。 ... [详细]
  • Java8 Stream流Intermediate中间操作详细解析 ... [详细]
author-avatar
mobiledu2502923673
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有