Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* script * Automated changes * Automated changes * change also keys * write * Automated changes * Automated changes * force chapters * tweak project * Tweak project delete entry * Automated changes * Automated changes * cat file * Automated changes * Automated changes * tweak chapters in case * Automated changes * Automated changes * essaye comme ça * forcing value * Automated changes * Automated changes * try * Automated changes * Automated changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: root <root@vscode-python-27639-0.vscode-python-27639.projet-funathon.svc.cluster.local>
- Loading branch information
1 parent
ed81531
commit 64baaf8
Showing
5 changed files
with
42 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import yaml | ||
|
||
# Specify the file to be modified | ||
file_path = "_quarto.yml" | ||
|
||
# Load the YAML file | ||
with open(file_path, 'r') as file: | ||
data = yaml.safe_load(file) | ||
|
||
# Define the replacement mappings | ||
replacements = { | ||
"book": "website", | ||
"Book": "Website", | ||
"BOOK": "WEBSITE" | ||
} | ||
|
||
del data['book']['chapters'] | ||
|
||
# Write the modified data back to the YAML file | ||
with open(file_path, 'w') as file: | ||
yaml.dump(data, file) |
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