Commit 9d5a540
authored
Script and GitHub Action to maintain a Wiki frontend (#303)
* Created workflow to update wiki with documents from repository
* Allowed for manual running of action
* Included Adding of petshop.md
* Added petshop surface-level files
* Excluded template from wiki
* Changed files to match consistency of other markdown files
* Added pet shop files to path
* Excluded all example code folders and pruned empty folders
* Added steps to run python script
* Created Python script to form files for Wiki from repo
* Changed to double-quote string
* Combined methods with similar logic
* Turned comment into doc string
* Returned to single quotes
* Simplified enumeration and string strip
* Added type hints and docs
* Added docs temp folder to gitignore
* Added type hint
* Moved call to slugify to extract title
* Simplified markdown mapping
* Created dataclass structure
* Added parent to markdownfile
* Created second structure class, FilePath
* Made MarkdownFile subclass FilePath
* Changed dataclass to use properties and store dirpath
* Ran linter on files
* Made dirpath not private
* Used dataclass provided init
* Restructured with dataclasses and simplified logic
* Minor rename
* Removed redundant variables
* Fixed markdown extension
* Added type hints
* Passed link to variable to reduce code
* File refactors and helper methods
* Removed comments
* Deleted old file instead of renaming and then deleting in case of case-only change
* Added check for system's case sensitivity
* Added info as parameter and moved method out of loop
* Removed name maps since links cannot work unless relative or absolute
* Simplified with dictionary comprehension
* Inlined method
* Returned name map for markdown
* Returned back to tuple and name map
* Created initial _Sidebar.md, which is included in Wiki
* Added markdown newline spacers
* Added markdown newline spacers
* Removed pathing from push, as all files work together
* Added spaces lost to merge
* Simplified to always delete old_path before writing to new file if name changed at all
* Remove makedirs since only file renaming happens
* Markdown lint
* Made links to repo folders link to base repo
* Added extra base cases for no extension links
* Added extra base cases for no extension links
* Changed where Home base case is handled
* Changed Home to early return
* Added print statements to rewrite
* Added boolean prints
* Updated boolean prints
* Changed to compare to empty string instead of None
* Added phone number base case to links
* Added explicit group 0
* Added case for links within angle brackets
* Removed example-code case from direct link
* Changed to link to any extension found
* Simplified boolean logic
* Removed CODE_EXTS
* Changed base cases to a regex match array to simplify extensibility
* Added regex comment on groups
* Removed unnecessary parameter
* Removed if blocks
* Added a dash to titles with Phase additions
* Created TupleMapName for simpler map creation and accessing
* Added prints to code to see if partition is necessary
* Changed structure to do a string replacement instead of rebuilding
* Removed default dict values
* Returned to old link structure
* Returned from TupleNameMap structure
* Added more useful prints than previous
* Only print if due to sep being empty
* Only print if not caught by any case
* Added to else block to actually only print if passed
* Added Home with anchor as base case
* Added local anchor base case
* Joined base cases
* Removed case of No new link
* Returned to modified link changing
* Simplified local anchor base case
* Added wrong case prints
* Added an re.escape to re.sub
* Returned test TupleNameMap structure
* Added secondary structure to test
* Added actual new value to prints
* Moved print to init
* Added prints of whole structures
* Moved prints to get method
* Added None base case
* Printed results
* Fixed tuple building
* Returned to new structure
* Minor refactors
* Added more supported embed extensions
* Created file to contain repo-specific rewrite rules
* Moved EMBED_EXTS to rules file
* Moved logic to name the file from extracted data to rules
* Added module docstring
* Made wiki_page_title add the file extension
* Added EDIT_FILE_EXTS
* Changed extension removal to account for any given extensions
* Renamed elements to match generalization
* Added class docstrings
* Moved slugify to structure
* Made title not slugified until after helper function
* Added access to rewrite_rules to slugify if needed
* Extracted logic for getting link to second helper method to use match return
* Made extrac_title_and_body part of rules file
* Took imports from structure's shared code
* Added os and re imports per file
* Changed so Wiki structure is kept within its own folder
* Added -a flag to copy
* Added dot to path
* Moved python scripts to subfolder
* Made Sidebar links relative to root
* Renamed Sidebar links
* Fixed link not updated
* Used Em Dash for Getting Started rename
* Added links to the Auto-Grader and Help Queue
* Added some Phase 3 relevant links
* Changed to Hyphen character
* Added char const for special hypen
* Made title link to base page
* Changed to title being added
* Added newline spaces
* Removed temporary Phase 3 _Sidebar1 parent de5027d commit 9d5a540
File tree
6 files changed
+288
-0
lines changed- .github
- scripts
- structure
- workflows
6 files changed
+288
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments