Comments (8)
In my case I needed to use gh-pages -d web_deploy
. (Maybe I misunderstood something).
But then it worked very well after accepting the solution of our master @kalinchernev.
from create-openapi-repo.
The reason you can use gh-pages
cli directly like this comes from npm path magic. It's quite safe with node LTS or up.
Then you can have a script like this, it's just a combination of other scripts for super-lazy people like me.
from create-openapi-repo.
@kalinchernev or @rodrigojv ,
Can one of you explain, in detail, the steps for modifying the build and deployment process? I'm still a novice in this area, so I understand the concept of what "installed gh-pages instead of deploy-to-gh-pages" means, but I'm not sure exactly how I need to modify the package.json file or if/where "dist === web_deploy" needs to be specified.
Any further help is appreciated as I am running into similar problems with the deployment process as well.
Thanks!
from create-openapi-repo.
For someone has same issue to deploy on gh-pages. Following steps are work for me.
- add gh-pages module from npm
npm install gh-pages
- add new line scripts in package.json
"gh-pages": "gh-pages -d web_deploy"
- run
npm run gh-pages
- trigger travis CI. It should be pass.
- Check repo's setting. Make sure gh-pages is use gh-pages branch
from create-openapi-repo.
fwiw - the defaults all worked for me (I didn't have to make any of the modifications described in the comments above) but I did have to manually create a gh-pages branch first. Before that the Travis build was failing when it attempted to clone that "gh-pages" branch that didn't yet exist.
from create-openapi-repo.
Having the same issue, and this worked for me.
Thanks for the work on this project! 🎉
from create-openapi-repo.
Thanks @RomanGotsiy ! The above worked for me, adding a new branch called "gh-pages"
But the API documentation I see is not what my API specs have.I see the default echo and user APIs in docs? Anyone know why?
from create-openapi-repo.
This is out of scope now.
from create-openapi-repo.
Related Issues (20)
- Replace interactive prompts with command line arguments HOT 1
- UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'parameters' of undefined HOT 2
- UnhandledPromiseRejectionWarning: Unhandled promise rejection HOT 1
- Bug with generated windows file paths
- Redoc and create-openapi-repo versioning HOT 1
- Cannot read property 'responses' of undefined
- Deploy on Github Pages a full rendered HTML of ReDoc HOT 2
- Doesn't support Node 10 HOT 3
- Improve README
- create-openapi-repo --migrate-2-3 (spec/code_samples/ needs to be empty)
- Using Swagger Editor again
- No more .travis.yml
- No duplicate HTTP Requests Method
- [Question] Editor/plugin with support for embedding external markdown HOT 1
- Option to split files only where OpenAPI expect references? HOT 4
- twitch
- `$ref`s are generated with the backslashes on Windows
- Error message shows up: 'Every API should have security defined on the root level or for each operation' HOT 1
- sync-java project
- Update Readme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-openapi-repo.