Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Output html should use relative paths #151

Open
stevebaxter opened this issue Jul 30, 2020 · 1 comment
Open

Output html should use relative paths #151

stevebaxter opened this issue Jul 30, 2020 · 1 comment

Comments

@stevebaxter
Copy link

The output HTML uses absolute paths, for instance if the snowboard command line is:

snowboard html --output dist/help myapi.apib

The output is:

  <body class="has-navbar-fixed-top">
    <div id="root"></div>
    <script src="/help/index.js"></script>
  </body>

The problem is that the documentation may not be served at /help (in our case it will be served at /1.0/help). It might be better to use relative paths here (e.g. <script src="index.js"></script>, or allow the user to specify the root folder.

@roelandwyns
Copy link

Yes indeed, also ran into this issue today. Not sure how to fix it right now, except for changing the html manually.

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

No branches or pull requests

2 participants