Skip to content

Commit 62375a8

Browse files
committed
docs(API docs): Gitlab pages
- Move docs folder within public folder for use with Gitlab Pages - Specify branch name fot TypeDocs code links
1 parent 1d30fe8 commit 62375a8

24 files changed

+61
-30
lines changed

.gitlab-ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Official framework image. Look for the different tagged releases at:
2+
# https://hub.docker.com/r/library/node/tags/
3+
image: node:latest
4+
5+
# This folder is cached between builds
6+
# http://docs.gitlab.com/ee/ci/yaml/README.html#cache
7+
cache:
8+
paths:
9+
- node_modules/
10+
11+
# Instructions to GitLab Runner for generating API documentation on Gitlab Pages
12+
pages:
13+
script:
14+
- npm install @microsoft/tsdoc typedoc
15+
- npm run docs
16+
artifacts:
17+
paths:
18+
- public/docs

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
This library enables tracking of UI events when a user interacts with a React or React Native application.
44

5+
## Features
6+
- **Progressive** - Uses latest JavaScript features and design patterns for a React codebase.
7+
- **Extensible** - A modular architecture and usage of Dependency.Inversion patterns gives you flexibility and allows you to easily extend features.
8+
- **TypeScript support**.
9+
510
## Supported events
611
- Form Events
712
- `onChange`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"eject": "react-scripts eject",
3030
"storybook": "start-storybook -p 6006 -s public",
3131
"build-storybook": "build-storybook -s public",
32-
"docs": "typedoc src/library/user-analytics"
32+
"docs": "typedoc src/library/user-analytics --gitRevision develop --out ./public/docs"
3333
},
3434
"eslintConfig": {
3535
"extends": [
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)