Git Product home page Git Product logo

code-reference's Introduction

WooCommerce Code Reference Generator

Generate WooCommerce Code Reference.

Install

git clone https://github.com/woocommerce/code-reference.git

Usage

cd code-reference
./deploy.sh -s <VERSION>

Options

Options Description
-h or --help Show help information.
-v or --verbose Increase verbosity. Useful for debugging.
-s <VERSION> or --source-version <VERSION> Source version to build and deploy.
-r <GITHUB_REPO> or --github-repo <GITHUB_REPO> GitHub repo with username, default to "woocommerce/woocommerce".
-e or --allow-empty Allow deployment of an empty directory.
-m <MESSAGE> or --message <MESSAGE> Specify the message used when committing on the deploy branch.
-n or --no-hash Don't append the source commit's hash to the deploy commit's message.
--build-only Only build but not push.
--push-only Only push but not build.
--no-download Skip zip download in case there's on in the project's root.

Changelog

See changelog for details

code-reference's People

Contributors

claudiosanches avatar dependabot[bot] avatar loranallensmith avatar nigeljamesstevenson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

code-reference's Issues

Hooks generator does not get all the PHP files to scan

Context

At Ventures team we would like to generate a hooks document for our internal use and we found there is an awesome script in this repo that just do the things we want. Here's our PR woocommerce/google-listings-and-ads#1573, it basically copy most of the code from the script and then modify a bit to suit what we need.

The Problem

We found the script does not capture all the PHP files in the directory, the TLDR reason is the script cannot work in the case where there are more than two levels of paths. Please see the detailed explanation in our PR's comment: woocommerce/google-listings-and-ads#1573 (comment).

It also relates to #15.

Our solution may not fulfil the needs in this repo, also if there's any better ways to generate hooks documents (like using PHPDoc?) in your mind, we're happy to hear and learn about.

Parser for WordPress hooks

@claudiosanches For hooks, isn't there an easy process to generate by parsing like previously done in ApiGen context. If some hooks get added then it has to be manually inserted currently right?

WooCommerce Code Reference

I noticed changes in the documentation. This is horrible compared to before. Woocommerce had the best documentation for an open source project. Now everything is an unproductive mess.

Cannot use 'Object' as class name as it is reserved

@claudiosanches I have tested this repo with PHP 7.2 and received the following error:

Fatal error: Cannot use 'Object' as class name as it is reserved in /var/www/html/apigen/vendor/latte/latte/src/Latte/Object.php on line 14 ErrorException: Cannot use 'Object' as class name as it is reserved in /var/www/html/apigen/vendor/latte/latte/src/Latte/Object.php:14

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.