-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cleanup_for_go_live
- Loading branch information
Showing
8 changed files
with
93 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
project: | ||
type: website | ||
output-dir: docs | ||
post-render: | ||
- move_readme_to_root.py | ||
|
||
format: | ||
html: | ||
|
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"""This script moves the README.md file from the docs folder into the project | ||
root. This is required, since the index.qmd file can only be rendered into | ||
files within the output folder. The post render option of the index.qmd file | ||
will then call this script to move it.""" | ||
import os | ||
import shutil | ||
|
||
root_path = os.path.dirname(os.path.abspath(__file__)) | ||
source_path = os.path.join(root_path, 'docs', 'README.md') | ||
destination_path = os.path.join(root_path, 'README.md') | ||
|
||
if os.path.exists(source_path): | ||
# Move the file | ||
try: | ||
shutil.move(source_path, destination_path) | ||
except Exception as e: | ||
print(f"Error moving README.md file to project root: {e}") |