Git Product home page Git Product logo

Comments (4)

yyx990803 avatar yyx990803 commented on July 23, 2024 3

This is intended. You simply init a new repo and force push on each deploy.

from vuepress.

mikhailbot avatar mikhailbot commented on July 23, 2024 1

Where in the docs was this suggested? Haven’t come across it in my reading and that doesn’t sound like the right thing to do either! The dist folder should typically just be used for outputting the generated content.

Edit: found it! I think that’s a bit of a hacky way to get it to work with GitHub pages. It even sounds like they’re saying to run it with CI as you know it’s going to get wiped. Honestly, save yourself the headache and give Netlify a go for deployment. It’s super easy and won’t have this issue as it’s doing the building on their side.

from vuepress.

vhanla avatar vhanla commented on July 23, 2024 1

Copy/move .git directory before running vuepress build and restore it after.

Maybe this script will help you, but it is a PowerShell script.

from vuepress.

SeaDude avatar SeaDude commented on July 23, 2024

Some of us are deploying to intranet. Therefore cloud resources such as Netlify, etc aren't an easy option. We have an Enterprise Github instance, so I'll try @vhanla 's suggestion.
Thank you.

from vuepress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.