Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed:reorg template #2

Merged
merged 3 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/fifty/1_the_sock_drawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Problem

???+ question
???+ question "Question"

=== "English"

Expand All @@ -25,7 +25,7 @@

## Tip

??? tip
??? tip "Tip"

=== "English"

Expand All @@ -38,7 +38,7 @@

## Solution

??? success
??? success "Solution"

=== "English"

Expand All @@ -50,7 +50,7 @@

## Simulation

???+ info
???+ example "Simulation"

=== "English"

Expand Down
6 changes: 3 additions & 3 deletions docs/fifty/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ Problems in `fifty` section come from the book: *Fifty challenging problems in p

## Problem Template(题目模板)
???+ example "Problem Template(题目模板)"
=== "Code(`docs/fifty/0_problem_template.md`)"
=== "Code(`docs/util/problem_template.md`)"

```markdown
--8<-- "docs/fifty/0_problem_template.md"
--8<-- "docs/util/problem_template.md"
```

=== "Show"

{% include-markdown "fifty/0_problem_template.md" %}
{% include-markdown "util/problem_template.md" %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Problem

???+ question
???+ question "Question"

=== "English"

Expand All @@ -15,7 +15,7 @@

## Tip

??? tip
??? tip "Tip"

=== "English"

Expand All @@ -29,7 +29,7 @@

## Solution

??? success
??? success "Solution"

=== "English"

Expand All @@ -41,7 +41,7 @@

## Simulation(Optional)

???+ info
???+ example "Simulation"

=== "English"

Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ nav:
- "1. The Sock Drawer": fifty/1_the_sock_drawer.md
- Changelog: CHANGELOG.md
not_in_nav: |
/fifty/0_problem_template.md
/util/*.md

theme:
name: material
Expand Down
Loading