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

auto-create the redirect structure from document source #413

Merged
merged 6 commits into from Sep 10, 2016

Conversation

peuter
Copy link
Member

@peuter peuter commented Sep 8, 2016

can be used as a datasource for https://github.com/CometVisu/cometvisu.github.io/blob/master/_createRedirectStructure.sh

the new feature is, that we can define in the documents source which old wiki pages it will replace. This data is read during build and extracted to a dedicated file in .doc/redirect-structure.sh. I assume the replacement map is easier to maintain this way. @ChristianMayer But you have to find a way to retrieve this filefrom the CometVisu repo, when you build the CometVisu Homepage. No idea how that can be done, fallback would be to copy the content manually every now and then.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 41.797% when pulling 943dc89 on peuter:user-manual into 7d34979 on CometVisu:develop.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 41.797% when pulling 0609a1d on peuter:user-manual into 7d34979 on CometVisu:develop.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 41.797% when pulling 7a37dda on peuter:user-manual into 7d34979 on CometVisu:develop.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 41.797% when pulling 04579d0 on peuter:user-manual into 7d34979 on CometVisu:develop.

@ChristianMayer
Copy link
Member

Where does the mapping information end up now?

Passing a path parameter to the redirect generation script should be easy.

@ChristianMayer ChristianMayer merged commit 9fdbd48 into CometVisu:develop Sep 10, 2016
@peuter
Copy link
Member Author

peuter commented Sep 10, 2016

Currently is manually commited to the main repo: https://github.com/CometVisu/CometVisu/blob/develop/.doc/redirect-structure.sh

But maybe it should be added to the gh-pages branch, because then it can be auto-commited by travis. Can you add an URL to the redirect generation script? In that case it would be easy. Otherwise it would have to be a single-file checkout or direct download from the github-repo.

@peuter peuter deleted the user-manual branch September 10, 2016 11:08
@ChristianMayer
Copy link
Member

Getting the data live over HTTP during the script run should be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants