Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-pages: Fix scenario titles by using scenario.title[page.lang] #89

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

anthonyfok
Copy link
Member

In commit bdb5170, docs/_data/dsra.yml was restructured where scenario.title was changed from an English string to two children nodes of en and fr to accommodate the French titles.

However, I failed to replace scenario.title with scenario.title[page.lang] in the Markdown files accordingly, leading to strange display of scenario titles such as {"en"=>"M7.1 Sidney (BC)", "fr"=>"M7,1 à Sidney (C.-B.)"}, for example.

Also reverted to not adding indentation to lists in docs/_data/dsra.yml, matching the formatting found in Damon’s original version and on https://yaml.org/.

Fixes #84

@anthonyfok anthonyfok added this to the Sprint 88 milestone Jan 23, 2024
In commit bdb5170, docs/_data/dsra.yml
was restructured where scenario.title was changed from an English string
to two children nodes of "en" and "fr" to accommodate the French titles.

However, I failed to replace scenario.title with scenario.title[page.lang]
in the Markdown files accordingly, leading to strange display of scenario
titles such as {"en"=>"M7.1 Sidney (BC)", "fr"=>"M7,1 à Sidney (C.-B.)"},
for example.

Fixes OpenDRR#84
Copy link
Collaborator

@wkhchow wkhchow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@anthonyfok anthonyfok merged commit 770a42a into OpenDRR:master Jan 23, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Published
Development

Successfully merging this pull request may close these issues.

Incorrect display on for each scenario in the earthquake scenarios GitHub page, dead links
2 participants