easyengine / handbook-command
Generate markdown's for ee commands
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 7
Forks: 9
Open Issues: 14
Type:ee-handbook-package
This package is auto-updated.
Last update: 2024-10-21 19:48:47 UTC
README
⚠️ WIP: This repo is currently work in progress! 🚧
The purpose of this repo is to hold EasyEngine v4 documentation as of now. Over the time, we hope to make all tutorials published on EasyEngine.io available here.
V4 Docs
EasyEngine v4 documentation is divided into two parts.
Commands reference
This part is automatically generated by parsing PHP docblock. Please do not edit markdown files in commands
folder as they may get overwritten any time.
If you want to send a fix for a command documentation, the best way to do is send a pull request with changes to PHP docblock on its respective repo.
Alternatively, is to create a new issue in this repo with details such as:
- EE Command for which you are sending a fix
- Mention the wrong part (screenshot is also fine)
- Mention the correct part (optional)
Handbook
EasyEngine v4 has a lot to it. The docker magic, new filesystem layouts a lot more. This is a part which is independent of any command.
For now, we are creating issues labeled documentation
for each such aspect which we feel needs documentation.
You can help in the following ways:
Write a new documentation
If you are familiar with EasyEngine v4
- Pick an issue labeled
documentation
. - Please post a comment on the issue saying something like "working on this". So others will not pick the same issue.
- Fork this repo!
- Create a new markdown file for the issue in folder
handbook/
. Please avoid spaces in filename. Use-
as a separator. Keep all characters lowercase. - Once you are done writing markdown file, submit it via pull request (PR).
If for some reason, you can't send PR, you can write down documentation as comment on relevant issue. Please use markdown. We will copy your comment manually!
Update existing documentation
You can help with documentation update in two ways:
- English is not a primary language of any core team member. So if you can improve langauge of the documentation so it becomes easy to understand, that would be a great help.
- Send updates to improve accuracy, add more information or even fix typos!
Documentation Hosting
We are not using Github pages or any static site generator. Instead another team at rtCamp is working on a solution which will seamlessly publish these markdown files in a WordPress site as pages.
Their WordPress custom code will take care of all the bells & whistles a documentation sites need such as:
- stylining (theming),
- table of content
- listing subpages
- breadcrumb
- search
- related pages
- meta data such as title, discription, slug
We will be open sourcing WordPress custom code also so that any other project which wish to make use of such documentation flow will benefit from this. We are using some codes from wp-cli. wp-cli project documenation is also built like this.
Once we have documentation site ready, we will add its URL here.
The good part is - we are writing in markdown files which if nothing else works (by Nov 15, 2018), can be quickly converted into Github Pages! 😉
The proposed build process
- All EasyEngine comamnds repos and this docs repo will have CI/CD setup.
- Whenever something changes, a build process will run which will invoke a wp-cli command (WordPress custom code).
- That wp-cli command will take care of updating WordPress sites in appropriate way.
Legacy flow
The documentation is located in GitHub to enable a pull request-based editing workflow. Long-form documentation can be edited directly. Command pages are generated dynamically from the EasyEngine codebase using the ee handbook gen_commands
series of commands. ee handbook gen-all
will regenerate all of the command pages and handbook pages.
All documentation is imported automatically into docs.easyengine.io in a two step process:
- WordPress reads
commands-manifest.json
andhandbook-manifest.json
to understand all pages that need to be created. - Each WordPress page has a
markdown_source
attribute specifying a Markdown file to be fetched, converted to HTML, and saved in the database.
For docs.easyengine.io, the import process is running a WP Cron job on every push to github repo.