Giter Site home page Giter Site logo

devdocs-site's Introduction

PrestaShop Technical Documentation Site

Build Submodules Sync

This repository contains the sources to build DevDocs - PrestaShop's technical documentation site.

Contributing

Rendering the site locally

Using docker-compose

  1. Clone the repository somewhere on your system:

    git clone --recurse-submodules https://github.com/PrestaShop/devdocs-site.git
    
  2. Switch to the docs directory:

    cd docs
    
  3. Create .env file by .env.example:

    cp .env.example .env
    
  4. Launch Hugo service:

    docker-compose up hugo
    

Natively

Setting up your environment

  1. Install Hugo. You will need v0.82+ (extended binary)

    • Mac and Linux: Run ./bin/installHugo.sh
    • Windows: Grab the release binary

    Or read the Official install guide.

  2. Clone the repository somewhere on your system

    git clone --recurse-submodules https://github.com/PrestaShop/devdocs-site.git
    

Launching the site

  1. Switch to the src directory:

    cd /path/to/docs/src
    
  2. Launch Hugo:

    hugo server
    

    You may need to change the path to the hugo binary depending on where it is on your system

  3. Done! You can open up the site on your browser.

    It's usually available at http://localhost:1313

    Any change you perform on your data will be updated almost instantly.

Customizing the style

We use Sass for styling, bundled by Hugo itself.

The source files for the main css & js are in the assets directory of the theme's repository.

Deployment

Every time a contribution is merged inside one of the docs branches, a first GitHub workflow will notify the Sources repository.

Upon being notified, a second GitHub workflow is triggered in devdocs-site, which updates its submodules and commits them.

This commit triggers a third GitHub workflow that will deploy the latest version to devdocs.prestashop.com .

Theme updates do not trigger a deployment, consequently following a theme update, the docs website must be deployed manually.

License

Content from this documentation is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.

devdocs-site's People

Contributors

matks avatar ps-jarvis avatar

Watchers

 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.