Skip to content

Commit

Permalink
remove edit button, add some note
Browse files Browse the repository at this point in the history
  • Loading branch information
AIboy996 committed Nov 7, 2023
1 parent 76da6b2 commit 077dc3d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add this file to avoid pages-build-deployment workflow run error.
10 changes: 10 additions & 0 deletions docs/Playground/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ hide: <!--(3)-->
2. tags控制页面的标签,便于归纳整理
3. hide可以隐藏相应的内容,例如导航栏、目录、评论区等

!!! note "可以隐藏的组件"

- navigation:隐藏导航栏
- toc:隐藏目录
- feedback:隐藏反馈按钮
- comments:隐藏评论区
- math:不加载math.js
- tags:隐藏tag
- edit:隐藏编辑按钮

## 命令行组件
[termynal](https://github.com/ines/termynal)是一款简洁好看的命令行演示组件。

Expand Down
4 changes: 2 additions & 2 deletions overrides/partials/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
{% if page.edit_url %}
{% set edit = "https://github.com/squidfunk/mkdocs-material/edit" %}
{% set view = "https://raw.githubusercontent.com/squidfunk/mkdocs-material" %}
<a href="{{ page.edit_url | replace('master', 'main') | replace('github.com', 'github.dev') |replace('edit', 'blob')}}" title="Edit this page" class="md-content__button md-icon" {{ hiddenedit }}>
<!-- <a href="{{ page.edit_url | replace('master', 'main') | replace('github.com', 'github.dev') |replace('edit', 'blob')}}" title="Edit this page" class="md-content__button md-icon" {{ hiddenedit }}>
{% include ".icons/material/file-edit-outline.svg" %}
</a>
</a> -->
<a href="{{ page.edit_url | replace(edit, view) | replace('master', 'main') | replace('edit','tree')}}" title="View source of this page" class="md-content__button md-icon" {{ hiddenedit }}>
{% include ".icons/material/file-eye-outline.svg" %}
</a>
Expand Down

0 comments on commit 077dc3d

Please sign in to comment.