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

Problem with docs:serve when base is set #416

Closed
3 tasks done
tk1 opened this issue Oct 12, 2021 · 2 comments · Fixed by #470
Closed
3 tasks done

Problem with docs:serve when base is set #416

tk1 opened this issue Oct 12, 2021 · 2 comments · Fixed by #470
Labels
enhancement New feature or request

Comments

@tk1
Copy link

tk1 commented Oct 12, 2021

Describe the bug

The built pages are not displayed correctly when using a base path.

Reproduction

Set a base path not equal to / e.g. /test/ . After

yarn docs:build
yarn docs:serve

browse to http://localhost:5000/test/

Expected behavior

correct rendering of pages

System Info

System:
    OS: Windows 10 10.0.19042
    CPU: (32) x64 AMD Ryzen 9 3950X 16-Core Processor
    Memory: 46.44 GB / 63.88 GB
  Binaries:
    Node: 16.1.0 - C:\Program Files\nodejs\node.EXE
    npm: 7.11.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1023.0), Chromium (94.0.992.38)
    Internet Explorer: 11.0.19041.1202
  npmPackages:
    vitepress: ^0.19.2 => 0.19.2

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
@tk1 tk1 added the bug: pending triage Maybe a bug, waiting for confirmation label Oct 12, 2021
@kiaking
Copy link
Member

kiaking commented Oct 14, 2021

Yeah this is because the dist folder structure. We need to tweak the folder after the build, before serve. It could be nice if we have a way to handle this.

@kiaking kiaking added enhancement New feature or request and removed bug: pending triage Maybe a bug, waiting for confirmation labels Oct 14, 2021
@aantipov
Copy link

Why isn't it considered as a bug?

Documentation suggests the following structure
image
and the following scripts
image

Developers do what Documentation says and it doesn't work: docs:serve script doesn't work.

GordonSmith added a commit to GordonSmith/vitepress that referenced this issue Dec 14, 2021
GordonSmith added a commit to GordonSmith/vitepress that referenced this issue Dec 14, 2021
GordonSmith added a commit to GordonSmith/vitepress that referenced this issue Dec 14, 2021
GordonSmith added a commit to GordonSmith/vitepress that referenced this issue Dec 14, 2021
yyx990803 pushed a commit that referenced this issue Jan 6, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants