-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs structure for website versioning improvements (#3150)
--------- Co-authored-by: ashleynilo <[email protected]>
- Loading branch information
1 parent
b4cfcaf
commit 6f1369b
Showing
83 changed files
with
200 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Please refer to the F´ website: https://fprime.jpl.nasa.gov/latest/getting-started/ | ||
Please refer to the F´ website: https://fprime.jpl.nasa.gov/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,19 @@ | ||
import os | ||
import shutil | ||
from pathlib import Path | ||
|
||
SDD_DIR = "./docs/documentation/reference/sdd" | ||
os.makedirs(SDD_DIR, exist_ok=True) | ||
SDD_INDEX_FILE = "./docs/reference/sdd.md" | ||
|
||
# Append the new file path to index.md | ||
with open(Path(SDD_DIR) / 'index.md', 'a') as index_file: | ||
with open(Path(SDD_INDEX_FILE), 'a') as index_file: | ||
|
||
# Find all sdd.md files and process them | ||
for file in list(Path('.').rglob('*/docs/sdd.md')): | ||
# Sort them for convenience, but also can't use the rglob generator since | ||
# it would start matching generated files, so using sorted to create a list | ||
for file in sorted(Path('.').rglob('*/docs/sdd.md')): | ||
# Get module name and parent directory name | ||
second_parent = file.parents[1].name | ||
third_parent = file.parents[2].name | ||
|
||
if third_parent in ["", ".", "fprime", "Ref"] or third_parent.startswith("cookiecutter-"): | ||
continue | ||
|
||
source_dir = file.parents[1] / 'docs' | ||
dest_dir = Path(SDD_DIR) / third_parent / second_parent / 'docs' | ||
|
||
os.makedirs(dest_dir, exist_ok=True) | ||
shutil.copytree(source_dir, dest_dir, dirs_exist_ok=True) | ||
|
||
index_file.write(f"- [{third_parent}::{second_parent}](./{third_parent}/{second_parent}/docs/sdd.md)\n") | ||
index_file.write(f"- [{third_parent}::{second_parent}](../../{third_parent}/{second_parent}/docs/sdd.md)\n") |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,39 @@ | ||
--- | ||
Title: Home | ||
template: home.html | ||
--- | ||
# Documentation | ||
|
||
[View the F Prime Website here](https://fprime.jpl.nasa.gov/latest/) | ||
|
||
<div class="grid cards" markdown> | ||
|
||
- <span class="card-title">__Tutorials__</span> *Learning-oriented* | ||
|
||
--- | ||
|
||
Tutorials walk through the essentials of F Prime development, starting with the canonical HelloWorld example and progressing to cross-compiling and deploying on hardware. | ||
|
||
[Visit Tutorials](tutorials/index.md){ .md-button .md-button--primary } | ||
|
||
- <span class="card-title">__User Manual__</span> *Understanding-oriented* | ||
|
||
--- | ||
|
||
The User Manual dives into F Prime design philosophy and architectural principles, providing a deep understanding of how the framework operates. | ||
|
||
[Visit User Manual](user-manual/index.md){ .md-button .md-button--primary } | ||
|
||
- <span class="card-title">__How To__</span> *Task-oriented* | ||
|
||
--- | ||
|
||
How-To guides offer step-by-step instructions for specific development tasks in F Prime. | ||
|
||
[Visit How Tos](how-to/index.md){ .md-button .md-button--primary } | ||
|
||
- <span class="card-title">__Reference__</span> *Information-oriented* | ||
|
||
--- | ||
|
||
Technical reference for the F Prime C++ API, CMake API, FPP language specification and more. | ||
|
||
[Visit Reference](reference/index.md){ .md-button .md-button--primary } | ||
|
||
|
||
</div> |
Oops, something went wrong.