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

THRIFT-5634: thrift docs picture was broken #2673

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

iceprosurface
Copy link
Contributor

  • Did you create an Apache Jira ticket? (not required for trivial changes)
  • If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
  • Did you squash your changes to a single commit? (not required, but preferred)
  • Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?
  • If your change does not involve any code, include [skip ci] anywhere in the commit message to free up build resources.

change :

https://thrift.apache.org/docs/doc/images/cgrn.png -> https://thrift.apache.org/doc/images/cgrn.png
https://thrift.apache.org/docs/doc/images/cred.png -> https://thrift.apache.org/doc/images/cred.png

@jimexist
Copy link
Member

i wonder what is a better fix, to change all relative paths to absolute one or to just update somewhere once to fix the docs prefix?

@iceprosurface
Copy link
Contributor Author

i wonder what is a better fix, to change all relative paths to absolute one or to just update somewhere once to fix the docs prefix?

This is determined by the location of the static resource (image).

For example:

https://thrift.apache.org/docs/Languages.html was under /docs/, so that relative assets will load with prefix /docs/

doc/images/cgrn.png-> /docs/doc/images/cgrn.png

However if we change correct relative path -> ../doc/images/cgrn.png, this will break github preview.

Move doc/images to docs/images, then add the /docs prefix to every static resource(image), maybe this is a better fix.

Change all doc will break search result of search engine.

@Jens-G Jens-G merged commit c87097a into apache:master Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants