Generator

This commit is contained in:
Bashamega 2024-05-23 14:52:46 +03:00
parent 04c66b66ed
commit 24215ed012
6 changed files with 3626 additions and 3565 deletions

21
chapters/_sidebar.MD Normal file
View 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
View 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

File diff suppressed because it is too large Load diff

3566
website_old/index.html Normal file

File diff suppressed because it is too large Load diff