question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Outdated Documentation

See original GitHub issue

http://swagger.io/docs/swagger-tools/#swagger-ui-documentation-29

The above documentation specifies there’s a HTML folder however this seems to have been removed in the following commit: https://github.com/swagger-api/swagger-ui/commit/bd8344c80879f245cf6bbff8122967137f37ceff

How can I now edit the html template? I’m looking to rename the <title> tag but can however find no reference to it.

The build file always seems to have a hardcoded: <title>Swagger UI</title>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
shockeycommented, Apr 10, 2017

As I mentioned before, dist/index.html is a static file, not a generated file, so making changes to it is safe and won’t be destroyed by later builds.

If modifying the HTML directly doesn’t suit your taste: you could write a plugin that uses react-helmet to manage the document <head>, or just do a document.title = "My Title".

Alternatives to changing the Swagger specification URL that’s loaded via index.html include providing a ?url=http://mycompany.com/swagger.json query parameter when you open Swagger-UI.

0reactions
Adztercommented, Apr 6, 2017

I’m using 3.x and looking to change the <title> tag as well as the default .json file that’s loaded

I know these can be changed in the generated .html file but would prefer if it’s possible to do it through the build process.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Outdated Documentation | How It Can Cost You | by Jacquie ...
This article by Jacquie Samuels discusses how outdated documentation can cost your brand and your company.
Read more >
The Holy Grail of “Always-Up-to-Date” Documentation
When you ask someone what's wrong with your documentation, the top 3 answers will be: no one reads it, it is misleading, and...
Read more >
Outdated Documentation - Ubuntu Community Hub
The most visible resource on Ubuntu is its documentation. help.ubuntu.com articles come up in any search for information on Ubuntu.
Read more >
Outdated Documentation - tardis
Outdated Installation FAQs. The following pages are no longer applicable to the TARDIS documentation in its current form, but will be edited ...
Read more >
Check all documentation, mark outdated ... - GitHub
Many documentation documents are (partly) outdated and have to be updated! Suggested change. Mark outdated documentation as outdated; Begin ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found