-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(docs): update generate docs script
- Loading branch information
1 parent
bc47d06
commit 45ad0f3
Showing
2 changed files
with
55 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ The following sections are editable by making changes to the following files: | |
| Component Example Code | HTML sample code of the components use | `./apiExamples/basic.html` | | ||
--> | ||
|
||
# [Name] | ||
# Header | ||
|
||
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/description.md) --> | ||
<!-- The below content is automatically added from ./../docs/partials/description.md --> | ||
|
@@ -39,13 +39,14 @@ For the most up to date information on [UI development browser support](https:// | |
|
||
## Install | ||
|
||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/componentInstall.md) --> | ||
[![Build Status](https://img.shields.io/github/actions/workflow/status/AlaskaAirlines/[namespace]-[name]/testPublish.yml?style=for-the-badge)](https://github.com/AlaskaAirlines/[namespace]-[name]/actions/workflows/testPublish.yml) | ||
[![See it on NPM!](https://img.shields.io/npm/v/[npm]/[namespace]-[name]?style=for-the-badge&color=orange)](https://www.npmjs.com/package/[npm]/[namespace]-[name]) | ||
[![License](https://img.shields.io/npm/l/[npm]/[namespace]-[name]?color=blue&style=for-the-badge)](https://www.apache.org/licenses/LICENSE-2.0) | ||
|
||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/componentInstall_esm.md) --> | ||
[![Build Status](https://img.shields.io/github/actions/workflow/status/AlaskaAirlines/auro-header/testPublish.yml?style=for-the-badge)](https://github.com/AlaskaAirlines/auro-header/actions/workflows/testPublish.yml) | ||
[![See it on NPM!](https://img.shields.io/npm/v/@aurodesignsystem/auro-header?style=for-the-badge&color=orange)](https://www.npmjs.com/package/@aurodesignsystem/auro-header) | ||
[![License](https://img.shields.io/npm/l/@aurodesignsystem/auro-header?color=blue&style=for-the-badge)](https://www.apache.org/licenses/LICENSE-2.0) | ||
![ESM supported](https://img.shields.io/badge/ESM-compatible-FFE900?style=for-the-badge) | ||
|
||
```shell | ||
$ npm i [npm]/[namespace]-[name] | ||
$ npm i @aurodesignsystem/auro-header | ||
``` | ||
|
||
Installing as a direct, dev or peer dependency is up to the user installing the package. If you are unsure as to what type of dependency you should use, consider reading this [stack overflow](https://stackoverflow.com/questions/18875674/whats-the-difference-between-dependencies-devdependencies-and-peerdependencies) answer. | ||
|
@@ -71,13 +72,13 @@ Any update to the Auro Design Tokens will be immediately reflected with browsers | |
### Define dependency in project component | ||
|
||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/componentImportDescription.md) --> | ||
Defining the component dependency within each component that is using the `<[namespace]-[name]>` component. | ||
Defining the component dependency within each component that is using the `<auro-header>` component. | ||
|
||
<!-- AURO-GENERATED-CONTENT:END --> | ||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/componentImport.md) --> | ||
|
||
```js | ||
import "[npm]/[namespace]-[name]"; | ||
import "@aurodesignsystem/auro-header"; | ||
``` | ||
|
||
<!-- AURO-GENERATED-CONTENT:END --> | ||
|
@@ -93,7 +94,7 @@ import "[npm]/[namespace]-[name]"; | |
## Install bundled assets from CDN | ||
|
||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleInstallDescription.md) --> | ||
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. See -- `[namespace]-[name]__bundled.js` for modern browsers. Legacy browsers such as IE11 are no longer supported. | ||
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. See -- `auro-header__bundled.js` for modern browsers. Legacy browsers such as IE11 are no longer supported. | ||
|
||
**WARNING!** When installing into your application environment, DO NOT use `@latest` for the requested version. Risks include unknown MAJOR version releases and instant adoption of any new features and possible bugs without developer knowledge. The `@latest` wildcard should NEVER be used for production customer-facing applications. You have been warned. | ||
|
||
|
@@ -104,14 +105,14 @@ In cases where the project is not able to process JS assets, there are pre-proce | |
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleUseModBrowsers.md) --> | ||
|
||
```html | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@[dtVersion]/dist/tokens/CSSCustomProperties.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@[wcssVersion]/dist/bundled/essentials.css" /> | ||
<script src="https://cdn.jsdelivr.net/npm/[npm]/[namespace]-[name]@[Version]/dist/[namespace]-[name]__bundled.js" type="module"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.3.1/dist/tokens/CSSCustomProperties.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.0.8/dist/bundled/essentials.css" /> | ||
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/[email protected]/dist/auro-header__bundled.js" type="module"></script> | ||
``` | ||
|
||
<!-- AURO-GENERATED-CONTENT:END --> | ||
|
||
## [namespace]-[name] use cases | ||
## auro-header use cases | ||
|
||
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/useCases.md) --> | ||
<!-- The below content is automatically added from ./../docs/partials/useCases.md --> | ||
|
@@ -123,7 +124,7 @@ The `<auro-header>` element should be used in situations where users may: | |
|
||
## API Code Examples | ||
|
||
### Default [namespace]-[name] | ||
### Default auro-header | ||
|
||
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) --> | ||
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html --> | ||
|
@@ -173,7 +174,7 @@ The custom element API file is generated in the build and committed back to the | |
### Testing | ||
|
||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/testing.md) --> | ||
Automated tests are required for every Auro component. See `.\test\[namespace]-[name].test.js` for the tests for this component. Run `npm test` to run the tests and check code coverage. Tests must pass and meet a certain coverage threshold to commit. See [the testing documentation](https://auro.alaskaair.com/support/tests) for more details. | ||
Automated tests are required for every Auro component. See `.\test\auro-header.test.js` for the tests for this component. Run `npm test` to run the tests and check code coverage. Tests must pass and meet a certain coverage threshold to commit. See [the testing documentation](https://auro.alaskaair.com/support/tests) for more details. | ||
|
||
<!-- AURO-GENERATED-CONTENT:END --> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters