mirror of
https://github.com/phodal/github
synced 2026-05-22 00:29:47 +00:00
Generator
This commit is contained in:
parent
04c66b66ed
commit
24215ed012
6 changed files with 3626 additions and 3565 deletions
21
chapters/_sidebar.MD
Normal file
21
chapters/_sidebar.MD
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
- [Home Page](/)
|
||||
- [01 introduction](/01-introduction.md)
|
||||
- [01 start project](/01-start-project.md)
|
||||
- [02 github fundamentals](/02-github-fundamentals.md)
|
||||
- [03 build github project](/03-build-github-project.md)
|
||||
- [04 commit message](/04-commit-message.md)
|
||||
- [05 create project documents](/05-create-project-documents.md)
|
||||
- [06 refactor project](/06-refactor-project.md)
|
||||
- [07 tdd with autotest](/07-tdd-with-autotest.md)
|
||||
- [08 github marketing](/08-github-marketing.md)
|
||||
- [09 maintain project](/09-maintain-project.md)
|
||||
- [10 git tools](/10-git-tools.md)
|
||||
- [11 analytics](/11-analytics.md)
|
||||
- [12 find github project](/12-find-github-project.md)
|
||||
- [13 read code](/13-read-code.md)
|
||||
- [14 streak your github](/14-streak-your-github.md)
|
||||
- [15 milestone](/15-milestone.md)
|
||||
- [16 find in github](/16-find-in-github.md)
|
||||
- [18 get star](/18-get-star.md)
|
||||
- [19 joke](/19-joke.md)
|
||||
- [999 faq](/999-faq.md)
|
||||
18
chapters/generate.py
Normal file
18
chapters/generate.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#This file is for generating the _sidebar.MD
|
||||
import os
|
||||
|
||||
# Get the current directory
|
||||
current_dir = os.getcwd()
|
||||
|
||||
# List all files in the current directory
|
||||
files = os.listdir(current_dir)
|
||||
|
||||
# Filter out only the markdown files
|
||||
md_files = [file for file in files if file.endswith('.md')]
|
||||
|
||||
# Write the names of the markdown files
|
||||
with open('_sidebar.md', 'w') as sidebar_file:
|
||||
sidebar_file.write("- [Home Page](/)\n")
|
||||
for md_file in md_files:
|
||||
if md_file != "readme.md" and md_file != '_sidebar.md':
|
||||
sidebar_file.write("- [" + md_file.replace('-', ' ').replace('.md', '') + "](/" + md_file +")\n")
|
||||
3586
index.html
3586
index.html
File diff suppressed because it is too large
Load diff
3566
website_old/index.html
Normal file
3566
website_old/index.html
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue