Skip to content

Commit

Permalink
add docs index
Browse files Browse the repository at this point in the history
  • Loading branch information
xxl4 committed Nov 21, 2024
1 parent bd00d5f commit 6071a97
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Console/Commands/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class Create extends CommandInterface
'.github/workflows',
'.github/workflows/php.yml',
'docs',
'docs/index.md',
'composer.json',
'README.md',
'phpunit.xml',
Expand Down Expand Up @@ -235,6 +236,9 @@ public function createFile($dir, $file, $content)
case 'LICENSE.md':
$content = file_get_contents(__DIR__.'/stubs/LICENSE.md.stub');
break;
case 'docs/index.md':
$content = file_get_contents(__DIR__.'/stubs/docs.index.md.stub');
break;

default:
break;
Expand Down
14 changes: 14 additions & 0 deletions src/Console/Commands/stubs/docs.index.md.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Nexa Merchant {{NAME}}

{{NAME}} is a package for Nexa Merchant.

## How to Install

```
composer require nexa-merchant/{{name}}
```

## How to Use

[How to Use {{NAME}}](docs/how-to-use.md)

0 comments on commit 6071a97

Please sign in to comment.