Giter Club home page Giter Club logo

docs's Introduction

PrestaShop Technical Documentation

Build DevDocs Site update

This documentation is available at https://devdocs.prestashop-project.org/

Contributing

Contributions are more than welcome! Find out how.

Note

This repository has specific contribution rules, please read them.

Rendering the site locally

See https://github.com/PrestaShop/devdocs-site/

Deployment

The deployment pipeline is documented on the sources repository for DevDocs.

License

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

Maintaining Hook list referential

A complete referential of hook and informations on each hook is located in modules/concepts/hooks/list-of-hooks/.

This referential can be generated with a script, crawling all:

  • PrestaShop (core) codebase
  • all native modules
  • all native themes

In the documentation, a hook is described in yaml format:

---
Title: string #name of the hook
hidden: boolean[true] #must be true
hookTitle: string #title for the description
description: string #description sentence
origin: string #core, module or theme
files:
    -
        theme: string #theme name only if origin=theme
        module: string #module name only if origin=module
        url: string #url of the file on github
        file: string #path of the file
locations:
    - string #back office, front office or both
type: string #action or display
hookAliases:
    - string #old hook name or alias
array_return: boolean #true or false if the hook has an `$array_return` parameter set to `true`
check_exceptions: boolean #true or false if the hook has a `$check_exceptions` parameter set to `false`
chain: boolean #true or false if the hook has a `$chain` parameter set to `true` 
---

This YAML structure enables the shortcode hookDescriptor to generate an HTML page with condensed information for documentation, and allows the search script to search within this metadata.

Next, add the shortcode in the page's content:

{{% hookDescriptor %}}

Finally, if available, add a section with a code example and parameters details:

## Parameters details
[...]

## Call of the Hook in the origin file
[...]

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.