8000 feat(social): add social media cards and status to pages · code93/complete-python-course@25b2650 · GitHub
[go: up one dir, main page]

Skip to content

Commit 25b2650

Browse files
committed
feat(social): add social media cards and status to pages
1 parent e4965cb commit 25b2650

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ videos/
4444
# Generated files
4545
.docusaurus
4646
.cache-loader
47+
.cache
4748

4849
# Misc
4950
.DS_Store

content.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def build_and_get_yaml_contents(root: str = "course_contents", build_path: str =
9292
files = glob.glob("course_contents/*", recursive=True)
9393
# Copy all files (not folders) to the build directory
9494
dir_util.copy_tree(f"{root}/stylesheets", f"{build_path}/stylesheets")
95+
dir_util.copy_tree(f"{root}/assets", f"{build_path}/assets")
9596

9697
for file in files:
9798
if pathlib.Path(file).is_file():

course_contents/1_intro/lectures/10_and_or/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
description: The and & or keywords in Python behave differently from what most people think!
3+
status: new
4+
---
5+
16
# The `and` & `or` keywords
27

38
??? abstract "Summary of this lecture"

course_contents/stylesheets/extra.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,4 @@ h1, h2 {
44

55
h3 {
66
font-weight: 600 !important;
7-
}
8-
9-
.md-annotation__index [data-md-annotation-id]::before {
10-
vertical-align: -0.05em;
11-
}
12-
13-
.md-annotation__index::after {
14-
margin: 0 -.35ch;
157
}

mkdocs.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ extra_css:
66
- stylesheets/extra.css
77
plugins:
88
- search
9+
- social
910
- git-revision-date-localized:
1011
enable_creation_date: true
1112
markdown_extensions:
@@ -25,11 +26,12 @@ markdown_extensions:
2526
theme:
2627
name: material
2728
custom_dir: overrides
28-
font: false
29+
logo: assets/logo.png
2930
features:
3031
- navigation.sections
3132
- navigation.tabs
3233
- content.code.annotate
34+
- content.tooltips
3335
palette:
3436
# Palette toggle for automatic mode
3537
- media: "(prefers-color-scheme)"
@@ -57,6 +59,8 @@ extra:
5759
analytics:
5860
provider: custom
5961
domain: complete-python.teclado.com
62+
status:
63+
new: Recently added
6064
nav:
6165
#[[[cog
6266
#from content import get_grouped_build_sections
@@ -71,7 +75,7 @@ nav:
7175
# cog.outl(f" - {lecture['title']}: {lecture['path']}")
7276
#]]]
7377
- Introduction:
74-
- Course Introduction:
75-
- Section Introduction: intro/README.md
76-
- The and & or keywords: intro/and_or/README.md
78+
- Course Introduction:
79+
- Section Introduction: intro/README.md
80+
- The and & or keywords: intro/and_or/README.md
7781
#[[[end]]]

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ cogapp
44
markdown
55
watchdog[watchmedo]
66
beautifulsoup4
7-
mkdocs-git-revision-date-localized-plugin
7+
mkdocs-git-revision-date-localized-plugin
8+
pillow
9+
cairosvg

0 commit comments

Comments
 (0)
0