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

Use a relative path for docs index page logo #1276

Merged
merged 2 commits into from
Mar 16, 2019

Conversation

Chris-Johnston
Copy link
Collaborator

@Chris-Johnston Chris-Johnston commented Feb 28, 2019

Changes the paths for the logo on the index page of the documentation
to use relative links instead of absolute ones.

Before:
before image

After:
after image

The current absolute path is just fine as long as the site is not hosted under another directory. When opening files locally (without serving them in docfx) these images will fail to load.
In addition, if these files are served under a directory that is not the root endpoint (like: docs.com/stable/) the images will also break.

I tested these changes locally using these steps:

  • Build & serve docs: docfx docs/docfx.json --serve
  • Verify that logo shows up on index page using all 3 themes
  • Open docs/_site/index.html
  • Verify logo works on all 3 themes

Also includes a minor grammar fix.

Changes the paths for the logo on the index page of the documentation
to use relative links instead of absolute ones.

The current absolute path is just fine as long as the site
is not hosted under another directory. When opening files locally
(without serving them in docfx) these images will fail to load.
In addition, if these files are served under a directory that is
not the root endpoint (like: `docs.com/stable/`) the images will
also break.

I tested these changes locally using these steps:

- Build & serve docs: `docfx docs/docfx.json --serve`
- Verify that logo shows up on index page using all 3 themes
- Open `docs/_site/index.html`
- Verify logo works on all 3 themes
@Chris-Johnston
Copy link
Collaborator Author

@foxbot this will likely affect you, since you were planning on updating your documentation, and your site hosts the latest docs under /latest/ and not /

@foxbot foxbot merged commit b80f0e8 into discord-net:dev Mar 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants