woocommerce/plugins/woocommerce-docs
Néstor Soriano 4876ab35b8
Bump WooCommerce minimum required PHP version to 7.4 (#39820)
-Change "Requires PHP":
  - In woocommerce.php
  - In readme.txt
  - In plugins/woocommerce-docs/woocommerce-docs.php
  - In packages/js/create-product-editor-block/plugin-templates/$slug.php.mustache

- Change "testVersion" in phpcs.xml:
  - In the root of the repository
  - In plugins/woocommerce
  - In plugins/woocommerce-beta-tester

- Change "require-php" and "config-platform-php" in composer.json
- Update composer.lock with more modern versions of some of the dependencies
- Remove the admin notice about the upcoming bump for PHP 7.3 users in class-wc-admin-notices.php
2023-08-22 09:21:09 +02:00
..
client MVP process manifest JSON and convert to WordPress categories/posts (#38874) 2023-06-29 16:47:22 +12:00
example-docs WooCommerce Docs: Relative Link Parsing (#39293) 2023-08-02 18:19:59 +12:00
scripts WooCommerce Docs: Delete posts when it removed from the manifest (#39395) 2023-08-04 14:00:50 +12:00
src WooCommerce Docs: Delete posts when it removed from the manifest (#39395) 2023-08-04 14:00:50 +12:00
tests WooCommerce Docs: Delete posts when it removed from the manifest (#39395) 2023-08-04 14:00:50 +12:00
.eslintrc MVP process manifest JSON and convert to WordPress categories/posts (#38874) 2023-06-29 16:47:22 +12:00
.prettierrc.js Add a new plugin to the monorepo for the docs project (#38406) 2023-06-01 10:21:33 +12:00
.wp-env.json WooCommerce Docs: Support Gutenberg block conversion with CommonMark, add some basic unit tests. (#39096) 2023-07-12 19:29:15 +12:00
README.md WooCommerce Docs: Support Gutenberg block conversion with CommonMark, add some basic unit tests. (#39096) 2023-07-12 19:29:15 +12:00
composer.json WooCommerce Docs: Improve Manifest Structure, Extend Frontmatter Support (#39214) 2023-07-17 20:46:23 +12:00
composer.lock WooCommerce Docs: Improve Manifest Structure, Extend Frontmatter Support (#39214) 2023-07-17 20:46:23 +12:00
package.json Upgrade TypeScript to v5.1 (#39531) 2023-08-08 16:35:31 +12:00
phpunit.xml WooCommerce Docs: Support Gutenberg block conversion with CommonMark, add some basic unit tests. (#39096) 2023-07-12 19:29:15 +12:00
tsconfig.json MVP process manifest JSON and convert to WordPress categories/posts (#38874) 2023-06-29 16:47:22 +12:00
webpack.config.js Add a new plugin to the monorepo for the docs project (#38406) 2023-06-01 10:21:33 +12:00
woocommerce-docs.php Bump WooCommerce minimum required PHP version to 7.4 (#39820) 2023-08-22 09:21:09 +02:00

README.md

WooCommerce Docs Plugin

This is a work-in-progress plugin with the desired goal of consolidating documentation from various sources into Wordpress posts.

Although this is called WooCommerce Docs, it should be able to be used with any Wordpress site and a manifest conforming to the data structure (TBD) to create Wordpress posts from Markdown content.

Development

Set up the monorepo as usual, now from this directory run pnpm build to build the webpack assets. This plugin creates a top level menu called "WooCommerce Docs" that you can navigate to once you've mounted the plugin in your development environment.

You can use monorepo utils from the repo root to generate new manifests:

pnpm utils md-docs create ./plugins/woocommerce-docs/example-docs woodocs --outputFilePath ./plugins/woocommerce-docs/scripts/manifest.json

To load the manifest as a source in the plugin go to the plugin page and add a manifest with url:

http://your-local-wp-host/wp-content/plugins/woocommerce-docs/scripts/manifest.json

Please note that if you're hosting the file within Docker, that localhost will not work as the host for your file because that's reserved for localhost within the container. You'll need to use the IP address of your machine instead or on Mac OS you can use the Docker DNS name host.docker.internal.