Merge all curricula into one site by moving files#1791
Draft
illicitonion wants to merge 28 commits intomainfrom
Draft
Merge all curricula into one site by moving files#1791illicitonion wants to merge 28 commits intomainfrom
illicitonion wants to merge 28 commits intomainfrom
Conversation
This was generated with: ``` git mv org-cyf-itd/content/blocks common-content/en/module/itd rg -l blocks org-cyf-itd | xargs sed -e 's#blocks/#module/itd/#g' -i '' ``` And then manually reverting the one shared block (break in `content/workshops/workshop-plan/index.md`). This makes it easier to pull the content into another site (e.g. a single merged site) if needed.
If a `_index.md` file has `build.render = "never"` set, it ends up as an ancestor but without a link. This means we render a link with the title of the page, but with a blank link, which makes a link to the current page. This is never useful. e.g. on https://piscine.codeyourfuture.io/sprints/1/day-plan/ there's a "Piscine" link that has an empty `href` (so points at the current page) which shouldn't be there. This is because `org-cyf-piscine/content/sprints/_index.md` sets `build.render = "never"` because it's a single-module course, so the extra level of nesting isn't so useful.
Rather than overriding the overview template, just provide one with a separate name, so that per-course overview pages can also exist in this site.
Otherwise working out which page caused the problem is a pain.
This was generated with: ``` git mv org-cyf-itp/content org-cyf/content/itp mkdir -p org-cyf/content/blocks/code-of-conduct git mv org-cyf/content/itp/blocks/code-of-conduct/index.md org-cyf/content/blocks/code-of-conduct/index.md ```
This was generated with: ``` git mv org-cyf-piscine/content org-cyf/content/piscine ```
This allows for both animated and non-animated maps in the same site.
This was generated with: ``` git mv org-cyf-sdc/content org-cyf/content/sdc git mv org-cyf/content/sdc/blocks/* org-cyf/content/blocks/ ```
This was generated with: ``` git mv org-cyf-launch/content/blocks common-content/en/module/launch rg -l blocks org-cyf-launch | xargs sed -e 's#blocks/#module/launch/#g' -i '' ``` And then manually reverting the shared lunch and break blocks. This makes it easier to pull the content into another site (e.g. a single merged site) if needed.
This was generated with:
```
git mv org-cyf-tracks/content/blocks/{ai-essentials,sap-fico} common-content/en/blocks
```
This was generated with: ``` git mv org-cyf-tracks/content org-cyf/content/tracks ```
✅ Deploy Preview for cyf-programming ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for cyf-common ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for cyf-launch ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for cyf-piscine ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for cyf-sdc ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for cyf-tracks ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for cyf-itd ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for cyf-curriculum ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
c046d60 to
4fd1a2b
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.