Giter Site home page Giter Site logo

ccanellas / documentation-site Goto Github PK

View Code? Open in Web Editor NEW

This project forked from travelgatex/documentation-site

0.0 0.0 0.0 38.93 MB

travelgateX is a collection of GraphQL APIs for the travel trade.

Home Page: http://www.travelgatex.com

License: MIT License

Shell 0.06% HTML 21.75% JavaScript 32.74% CSS 45.45%

documentation-site's Introduction

travelgateX Documentation Site

travelgateX is a collection of GraphQL APIs for the travel trade.

Search & Book Hotels, Flights, etc. in more than 600 suppliers seemlessly.

Installation procedures:

  • Install Hugo
  • Clone the repo:

git clone [email protected]:travelgateX/documentation-site.git

  • Go into the repository folder

cd documentation-site

  • Init the submodule

git submodule update --init

  • Edit the markdown files in the content directory
  • Start the local webserver:

hugo server -D

  • View your changes locally at http://localhost:1313/

Deployment

The website is hosted in Github Pages. Hugo generates the static HTML files and in order to deploy we need push the changes to the travelgatex.github.io repository.

There's a script that does this automatically:

./deploy.sh

Common Pitfalls

Cannot push submodule

Sometimes we cannot push the submodule to github. In order to fix this issue you need to change to the public directory and overwrite the local changes with the uptream version:

cd public/
git reset --hard origin/master
git pull origin master
cd ..
./deploy.sh

Submodule not in master branch

Sometimes the submodule stats checkout in a specific commit. In order to fix it, just change to that directory and checkout master

cd public/
git checkout master
git reset --hard origin/master
git pull origin master
cd ..
./deploy.sh

Graphql documentation generator

cd script
npm install
npm start
cd ..

documentation-site's People

Contributors

catarinaav avatar arquio avatar fjortizescuchas avatar ajarilloxtg avatar gtorrens avatar pedrobc avatar

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.