From 645525ee4893e899fbe8b3a09d8a7547468d4678 Mon Sep 17 00:00:00 2001 From: Kaustav Chakraborty Date: Fri, 23 Aug 2019 01:22:07 +0530 Subject: [PATCH] Kaustav | #56 | Bumped up documentation version to 0.4. | TG-56 --- .../version-0.4/cli-command-generate.md | 72 +++++++++++++++++++ docusaurus/website/versions.json | 1 + 2 files changed, 73 insertions(+) create mode 100644 docusaurus/website/versioned_docs/version-0.4/cli-command-generate.md diff --git a/docusaurus/website/versioned_docs/version-0.4/cli-command-generate.md b/docusaurus/website/versioned_docs/version-0.4/cli-command-generate.md new file mode 100644 index 0000000..c1eb66f --- /dev/null +++ b/docusaurus/website/versioned_docs/version-0.4/cli-command-generate.md @@ -0,0 +1,72 @@ +--- +id: version-0.4-cli-command-generate +title: rg generate +original_id: cli-command-generate +--- + +Generates and/or modifies files based on a task. + +rg **generate** `` `` [_options_] + +rg **g** `` `` [_options_] + +## Description + +It generates the required element based on the task name. + +> Note that, for now we are only supporting **component, style** generating task. + +## Arguments + +Argument | Description | +---------|----------| + _task_ | The task or collection of tasks to generate. Check the [currently supported tasks](#task-commands). | + +## Options + +Argument | Description | +---------|----------| +--style=scss | Generates specific stylesheet file along with the component. NOTE THAT: WE ARE ONLY SUPPORTING SCSS FILE FOR NOW. | +--help | Shows a help message for this command in the console. | + +--- + +## Task commands + +### Component + +rg generate **component** `` [_options_] + +rg g **component** `` [_options_] + +#### Description + +Creates a new generic component definition in the given or default project. + +The component will be created in the current working directory. + +#### Arguments + +Argument | Description | +---------|----------| + _name_ | The name of the component. | + +### Style + +rg generate **style** `` [_options_] + +rg g **style** `` [_options_] + +#### Description + +Creates a new stylesheet file in the given or default project. + +The stylesheet will be created in the current working directory. + +> WE ARE ONLY SUPPORTING `SCSS` FILE FOR NOW. + +#### Arguments + +Argument | Description | +---------|----------| + _name_ | The name of the stylesheet. | diff --git a/docusaurus/website/versions.json b/docusaurus/website/versions.json index bf499b7..84a1eba 100644 --- a/docusaurus/website/versions.json +++ b/docusaurus/website/versions.json @@ -1,4 +1,5 @@ [ + "0.4", "0.3.3", "0.3.2", "0.3.1",