Skip to content

Commit

Permalink
Reworks repository layout for automatic doc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
vulder committed Feb 6, 2022
1 parent 12eaf0d commit b3c532e
Show file tree
Hide file tree
Showing 25 changed files with 32 additions and 12 deletions.
39 changes: 29 additions & 10 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,43 @@
# SG20: Teaching Topics

## Modules:
* [Compile-time programming](#compile-time-programming)
* [Meta-error handling](#meta-error-handling)
* [C++ object model](#c-object-model)
* [Program design](#program-design)
* [User-defined types](#user-defined-types)
* [Functions](#functions)

### Compile-time programming
* [requires-clause](sources/modules/compile-time-programming/requires-clause.md)
* [concepts](sources/modules/compile-time-programming/concepts.md)
* [requires-expressions](sources/modules/compile-time-programming/requires-expressions.md)
* [function-templates](sources/modules/compile-time-programming/function-templates.md)

### Meta-error handling
* [static_assert](sources/modules/meta-error-handling/static_assert.md)

### C++ object model
* [rule-of-five](object-model/rule-of-five.md)
* [constant-objects](object-model/constant-objects.md)
* [special-member-functions](object-model/special-member-functions.md)
* [declarations](object-model/declarations.md)
* [objects](object-model/objects.md)
* [types](object-model/types.md)
* [copy-semantics](object-model/copy-semantics.md)
* [rule-of-zero](object-model/rule-of-zero.md)
* [move-semantics](object-model/move-semantics.md)
* [rule-of-five](sources/modules/object-model/rule-of-five.md)
* [constant-objects](sources/modules/object-model/constant-objects.md)
* [special-member-functions](sources/modules/object-model/special-member-functions.md)
* [declarations](sources/modules/object-model/declarations.md)
* [objects](sources/modules/object-model/objects.md)
* [constructors](sources/modules/object-model/constructors.md)
* [types](sources/modules/object-model/types.md)
* [copy-semantics](sources/modules/object-model/copy-semantics.md)
* [rule-of-zero](sources/modules/object-model/rule-of-zero.md)
* [move-semantics](sources/modules/object-model/move-semantics.md)

### Program design
* [concepts](compile-time-programmings/concepts.md)

### User-defined types
* [user-defined-literals](functions/user-defined-literals.md)

### Functions
* [user-defined-literals](functions/user-defined-literals.md)
* [defaulted-parameters](sources/modules/functions/defaulted-parameters.md)
* [calling-functions](sources/modules/functions/calling-functions.md)
* [user-defined-literals](sources/modules/functions/user-defined-literals.md)
* [member-functions](sources/modules/functions/member-functions.md)

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion gen_readme.py → tools/mgmt_tools/gen_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def readme_generator_driver() -> None:
Run the Readme.md generation process.
"""
readme_filename = "Readme.md"
repo_root = Path('.')
repo_root = Path('sources/modules/')
teaching_modules: List[TeachingModule] = []

for directory in filter(
Expand Down
2 changes: 1 addition & 1 deletion topic_updater.py → tools/mgmt_tools/topic_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def exclude_non_topic_files(path: Path) -> bool:

topic_paths = list(
filter(exclude_non_topic_files,
Path(".").glob("**/*.md")))
Path("sources/modules/").glob("**/*.md")))
else:
topic_paths = args.topic_paths

Expand Down
1 change: 1 addition & 0 deletions tools/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pytest
pytest-pythonpath
mock

0 comments on commit b3c532e

Please sign in to comment.