Browse Source

Updated the documentation

tags/v3.1.0
Cédric Belin 2 months ago
parent
commit
c966c6045f
12 changed files with 79 additions and 41 deletions
  1. +6
    -7
      README.md
  2. +20
    -0
      doc/about/license.md
  3. +6
    -7
      doc/about/see_also.md
  4. +1
    -1
      doc/index.md
  5. +3
    -1
      doc/usage/api.md
  6. +3
    -1
      doc/usage/options.md
  7. +0
    -1
      etc/compodoc.yaml
  8. +24
    -15
      etc/mkdocs.yaml
  9. +1
    -0
      etc/requirements.txt
  10. +3
    -5
      gulpfile.cjs
  11. +6
    -3
      package.json
  12. +6
    -0
      readthedocs.yaml

+ 6
- 7
README.md View File

@@ -1,19 +1,18 @@
# Cookie Service for Angular
![Runtime](https://img.shields.io/npm/dependency-version/@cedx/ngx-cookies/peer/@angular/core.svg) ![Release](https://img.shields.io/npm/v/@cedx/ngx-cookies.svg) ![License](https://img.shields.io/npm/l/@cedx/ngx-cookies.svg) ![Downloads](https://img.shields.io/npm/dt/@cedx/ngx-cookies.svg) ![Dependencies](https://david-dm.org/cedx/ngx-cookies.js.svg) ![Coverage](https://coveralls.io/repos/github/cedx/ngx-cookies.js/badge.svg) ![Build](https://github.com/cedx/ngx-cookies.js/workflows/build/badge.svg)
![Runtime](https://img.shields.io/npm/dependency-version/@cedx/ngx-cookies/peer/@angular/core.svg) ![Release](https://img.shields.io/npm/v/@cedx/ngx-cookies.svg) ![License](https://img.shields.io/npm/l/@cedx/ngx-cookies.svg) ![Downloads](https://img.shields.io/npm/dt/@cedx/ngx-cookies.svg) ![Dependencies](https://david-dm.org/cedx/ngx-cookies.svg) ![Coverage](https://coveralls.io/repos/github/cedx/ngx-cookies/badge.svg) ![Build](https://github.com/cedx/ngx-cookies/workflows/build/badge.svg)

[Angular](https://angular.io) service for interacting with the [HTTP cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies), implemented in [TypeScript](https://www.typescriptlang.org).

> This library is packaged as [ECMAScript modules](https://nodejs.org/api/esm.html).

## Documentation
- [User guide](https://dev.belin.io/ngx-cookies.js)
- [API reference](https://dev.belin.io/ngx-cookies.js/api)
- [User guide](https://docs.belin.io/ngx-cookies)
- [API reference](https://api.belin.io/ngx-cookies)

## Development
- [Git repository](https://github.com/cedx/ngx-cookies.js)
- [GitHub package](https://github.com/cedx/ngx-cookies.js/packages)
- [Git repository](https://git.belin.io/cedx/ngx-cookies)
- [npm package](https://www.npmjs.com/package/@cedx/ngx-cookies)
- [Submit an issue](https://github.com/cedx/ngx-cookies.js/issues)
- [Submit an issue](https://git.belin.io/cedx/ngx-cookies/issues)

## License
[Cookie Service for Angular](https://dev.belin.io/ngx-cookies.js) is distributed under the MIT License.
[Cookie Service for Angular](https://docs.belin.io/ngx-cookies) is distributed under the MIT License.

+ 20
- 0
doc/about/license.md View File

@@ -0,0 +1,20 @@
# MIT License
Copyright © 2016 - 2020 Cédric Belin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

+ 6
- 7
doc/about/see_also.md View File

@@ -1,15 +1,14 @@
# See also

## Development
- [API reference](https://dev.belin.io/ngx-cookies.js/api)
- [GitHub package](https://github.com/cedx/ngx-cookies.js/packages)
- [API reference](https://api.belin.io/ngx-cookies)
- [npm package](https://www.npmjs.com/package/@cedx/ngx-cookies)
- [Submit an issue](https://github.com/cedx/ngx-cookies.js/issues)
- [Submit an issue](https://git.belin.io/cedx/ngx-cookies/issues)

## Testing
- [Continuous integration](https://github.com/cedx/ngx-cookies.js/actions)
- [Code coverage](https://coveralls.io/github/cedx/ngx-cookies.js)
- [Continuous integration](https://github.com/cedx/ngx-cookies/actions)
- [Code coverage](https://coveralls.io/github/cedx/ngx-cookies)

## Other implementations
- Dart: [Biscuits.dart](https://dev.belin.io/biscuits.dart)
- JavaScript: [Cookies for JS](https://dev.belin.io/cookies.js)
- Dart: [Biscuits.dart](https://docs.belin.io/biscuits.dart)
- JavaScript: [Cookies for JS](https://docs.belin.io/cookies.js)

+ 1
- 1
doc/index.md View File

@@ -1,5 +1,5 @@
# Cookie Service <small>for Angular</small>
![Runtime](https://img.shields.io/npm/dependency-version/@cedx/ngx-cookies/peer/@angular/core.svg) ![Release](https://img.shields.io/npm/v/@cedx/ngx-cookies.svg) ![License](https://img.shields.io/npm/l/@cedx/ngx-cookies.svg) ![Downloads](https://img.shields.io/npm/dt/@cedx/ngx-cookies.svg) ![Dependencies](https://david-dm.org/cedx/ngx-cookies.js.svg) ![Coverage](https://coveralls.io/repos/github/cedx/ngx-cookies.js/badge.svg) ![Build](https://github.com/cedx/ngx-cookies.js/workflows/build/badge.svg)
![Runtime](https://img.shields.io/npm/dependency-version/@cedx/ngx-cookies/peer/@angular/core.svg) ![Release](https://img.shields.io/npm/v/@cedx/ngx-cookies.svg) ![License](https://img.shields.io/npm/l/@cedx/ngx-cookies.svg) ![Downloads](https://img.shields.io/npm/dt/@cedx/ngx-cookies.svg) ![Dependencies](https://david-dm.org/cedx/ngx-cookies.svg) ![Coverage](https://coveralls.io/repos/github/cedx/ngx-cookies/badge.svg) ![Build](https://github.com/cedx/ngx-cookies/workflows/build/badge.svg)

[Angular](https://angular.io) service for interacting with the [HTTP cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies),
implemented in [TypeScript](https://www.typescriptlang.org).


+ 3
- 1
doc/usage/api.md View File

@@ -1,5 +1,7 @@
path: blob/master
---
path: src/branch/master
source: src/cookies.ts
---

# Programming interface
This package provides a service dedicated to the cookie management: the `Cookies` class.


+ 3
- 1
doc/usage/options.md View File

@@ -1,5 +1,7 @@
path: blob/master
---
path: src/branch/master
source: src/options.ts
---

# Cookie options
Several methods of the [Cookies](api.md) class accept an `options` parameter in order to customize the cookie attributes.


+ 0
- 1
etc/compodoc.yaml View File

@@ -1,6 +1,5 @@
customFavicon: doc/img/favicon.ico
disablePrivate: true
gaSite: auto
hideGenerator: true
name: Cookie Service for Angular
output: doc/api


doc/mkdocs.yaml → etc/mkdocs.yaml View File

@@ -1,30 +1,33 @@
site_name: Cookie Service for Angular
site_description: Angular service for interacting with the HTTP cookies, implemented in TypeScript.
site_author: Cédric Belin - cedric@belin.io
site_url: https://dev.belin.io/ngx-cookies.js
site_url: https://docs.belin.io/ngx-cookies

docs_dir: .
docs_dir: ../doc
site_dir: ../www

repo_name: GitHub
repo_url: https://github.com/cedx/ngx-cookies.js
repo_name: git.belin.io
repo_url: https://git.belin.io/cedx/ngx-cookies
edit_uri: ''

copyright: Copyright &copy; 2016 - 2020 Cédric Belin
google_analytics:
- !!python/object/apply:os.getenv [GOOGLE_ANALYTICS_ID]
- auto

extra:
social:
- {type: globe, link: 'https://belin.io'}
- {type: github, link: 'https://github.com/cedx'}
- {type: twitter, link: 'https://twitter.com/cedxbelin'}
- {type: linkedin, link: 'https://linkedin.com/in/cedxbelin'}
- icon: fontawesome/solid/globe
link: 'https://belin.io'
- icon: fontawesome/brands/github
link: 'https://github.com/cedx'
- icon: fontawesome/brands/twitter
link: 'https://twitter.com/cedxbelin'
- icon: fontawesome/brands/linkedin
link: 'https://linkedin.com/in/cedxbelin'

markdown_extensions:
- admonition
- codehilite
- meta
- toc:
permalink: true

nav:
- Overview: index.md
@@ -35,11 +38,17 @@ nav:
- Iteration: usage/iteration.md
- Events: usage/events.md
- About:
- Changelog: about/changelog.md
- License: about/license.md
- See also: about/see_also.md

theme:
name: material
favicon: img/favicon.ico
palette: {primary: blue, accent: red}
features:
- instant
icon:
logo: fontawesome/solid/book-reader
repo: fontawesome/brands/git-alt
name: material
palette:
accent: red
primary: blue

+ 1
- 0
etc/requirements.txt View File

@@ -0,0 +1 @@
mkdocs-material

+ 3
- 5
gulpfile.cjs View File

@@ -6,7 +6,7 @@ const replace = require('gulp-replace');
const {delimiter, normalize, resolve} = require('path');

// Initialize the build system.
const _path = 'PATH' in process.env ? process.env.PATH : '';
const _path = process.env.PATH ?? '';
const _vendor = resolve('node_modules/.bin');
if (!_path.includes(_vendor)) process.env.PATH = `${_vendor}${delimiter}${_path}`;

@@ -30,10 +30,8 @@ task('coverage', () => _exec('coveralls', ['var/lcov.info']));

/** Builds the documentation. */
task('doc', async () => {
for (const path of ['CHANGELOG.md', 'LICENSE.md']) await promises.copyFile(path, `doc/about/${path.toLowerCase()}`);
await _exec('compodoc', ['--config=etc/compodoc.yaml', `--gaID=${process.env.GOOGLE_ANALYTICS_ID}`]);
await _exec('mkdocs', ['build', '--config-file=doc/mkdocs.yaml']);
return del(['doc/about/changelog.md', 'doc/about/license.md', 'www/mkdocs.yaml']);
await _exec('compodoc', ['--config=etc/compodoc.yaml']);
return _exec('mkdocs', ['build', '--config-file=etc/mkdocs.yaml']);
});

/** Fixes the coding standards issues. */


+ 6
- 3
package.json View File

@@ -1,11 +1,10 @@
{
"bugs": "https://github.com/cedx/ngx-cookies.js/issues",
"bugs": "https://git.belin.io/cedx/ngx-cookies/issues",
"description": "Angular service for interacting with the HTTP cookies.",
"homepage": "https://dev.belin.io/ngx-cookies.js",
"homepage": "https://docs.belin.io/ngx-cookies",
"license": "MIT",
"main": "lib/index.js",
"name": "@cedx/ngx-cookies",
"repository": "github:cedx/ngx-cookies.js",
"type": "module",
"types": "lib/index.d.ts",
"version": "3.0.0",
@@ -74,6 +73,10 @@
"tslib": ">=1.11.0",
"zone.js": ">=0.10.0"
},
"repository": {
"type": "git",
"url": "https://git.belin.io/cedx/ngx-cookies.git"
},
"scripts": {
"coverage": "gulp coverage",
"prepack": "gulp",


+ 6
- 0
readthedocs.yaml View File

@@ -0,0 +1,6 @@
version: 2
mkdocs:
configuration: etc/mkdocs.yaml
python:
install:
- requirements: etc/requirements.txt

Loading…
Cancel
Save