Browse Source

Use a relative path for docs index page logo

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
pull/1276/head
Chris Johnston 6 years ago
parent
commit
1617b40dca
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      docs/_template/light-dark-theme/styles/dark.css
  2. +1
    -1
      docs/_template/light-dark-theme/styles/gray.css
  3. +1
    -1
      docs/_template/light-dark-theme/styles/light.css

+ 1
- 1
docs/_template/light-dark-theme/styles/dark.css View File

@@ -304,5 +304,5 @@ span.arrow-r{
} }


.logo-switcher { .logo-switcher {
background: url("/marketing/logo/SVG/Combinationmark White.svg") no-repeat;
background: url("../marketing/logo/SVG/Combinationmark White.svg") no-repeat;
} }

+ 1
- 1
docs/_template/light-dark-theme/styles/gray.css View File

@@ -311,5 +311,5 @@ span.arrow-r{
} }


.logo-switcher { .logo-switcher {
background: url("/marketing/logo/SVG/Combinationmark White.svg") no-repeat;
background: url("../marketing/logo/SVG/Combinationmark White.svg") no-repeat;
} }

+ 1
- 1
docs/_template/light-dark-theme/styles/light.css View File

@@ -113,5 +113,5 @@ span.arrow-r{
} }


.logo-switcher { .logo-switcher {
background: url("/marketing/logo/SVG/Combinationmark.svg") no-repeat;
background: url("../marketing/logo/SVG/Combinationmark.svg") no-repeat;
} }

Loading…
Cancel
Save