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

Docs content style error when use container as folder name #696

Closed
3 tasks done
RainKolwa opened this issue Jun 2, 2022 · 2 comments · Fixed by #699
Closed
3 tasks done

Docs content style error when use container as folder name #696

RainKolwa opened this issue Jun 2, 2022 · 2 comments · Fixed by #699
Labels
bug Something isn't working

Comments

@RainKolwa
Copy link
Contributor

Describe the bug

I created a folder named container inside docs, then I found that everything aligns center on docs under this directory.

<Content class="vp-doc" :class="pageName" />

.VPDoc .container {
display: flex;
justify-content: center;
}

Reproduction

Create a folder named container under docs, and create one page under it.

Expected behavior

Style not been affected.

System Info

No need.

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.
@RainKolwa RainKolwa added the bug: pending triage Maybe a bug, waiting for confirmation label Jun 2, 2022
@kecrily
Copy link
Contributor

kecrily commented Jun 2, 2022

I don't understand what you mean

@brc-dd brc-dd added bug Something isn't working and removed bug: pending triage Maybe a bug, waiting for confirmation labels Jun 2, 2022
@brc-dd
Copy link
Member

brc-dd commented Jun 2, 2022

Okay got it! Clone this repo: https://github.com/brc-dd/vitepress-container-bug, run dev and go to /foo or /container/foo.

kiaking pushed a commit that referenced this issue Jun 6, 2022
…) (#699)

fix: #696 

To fix the issue, make the page name inside VPDoc use a complete path.
@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
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants