From 956a7198a3283a46b50df8d9ed329e9ecf93f4a8 Mon Sep 17 00:00:00 2001
From: Cody Tolene
Date: Tue, 2 Aug 2022 02:19:17 -0500
Subject: [PATCH] Add table of contents and anchor links
---
README.md | 80 ++++++++++++++++++++++++++++++++++++++---------
package-lock.json | 2 +-
package.json | 2 +-
3 files changed, 67 insertions(+), 17 deletions(-)
diff --git a/README.md b/README.md
index b786d22..9a54203 100644
--- a/README.md
+++ b/README.md
@@ -9,23 +9,51 @@
-[](https://badge.fury.io/js/@proangular%2Fngx-scroll-top)
-[](https://www.npmjs.com/@proangular/ngx-scroll-top)
-[](https://gitter.im/ProAngular/community)
-[](https://github.com/ProAngular/ngx-scroll-top/actions/workflows/on-merge-main-deploy-gpr.yml)
-[](https://github.com/ProAngular/ngx-scroll-top/actions/workflows/on-merge-main-deploy-npmjs.yml)
-
-# Description
+[](https://www.npmjs.com/@proangular/ngx-scroll-top)
+[](https://github.com/ProAngular/ngx-scroll-top)
+[](https://github.com/ProAngular/ngx-scroll-top/search?l=typescript)
+[](https://www.npmjs.com/@proangular/ngx-scroll-top)
+[](https://www.npmjs.com/@proangular/ngx-scroll-top)
+[](https://www.npmjs.com/@proangular/ngx-scroll-top)
+[](https://bundlephobia.com/result?p=ProAngular/ngx-scroll-top)
+[](https://www.proangular.com)
+[](https://gitter.im/ProAngular/community)
+[](https://discord.com/channels/1003103094588055552)
+[](https://github.com/sponsors/ProAngular)
+[](/LICENSE)
+[](https://github.com/ProAngular/ngx-scroll-top/actions/workflows/on-merge-main-deploy-gpr.yml)
+[](https://github.com/ProAngular/ngx-scroll-top/actions/workflows/on-merge-main-deploy-npmjs.yml)
+
+## Table of Contents
+
+- [Description](#description)
+- [Demo](#demo)
+- [Installation](#installation)
+- [Dependencies](#dependencies)
+- [Usage](#usage)
+- [Component API](#api)
+- [Compatibility](#compatibility)
+- [Issues & Contribution](#development)
+- [Donations](#donations)
+- [License](#license)
+
+
+
+## Description
Configurable, lightweight back to top button for Angular projects.
-# Demo
+
+
+## Demo
-# Installation
+
+
+## Installation
```bash
ng add @proangular/ngx-scroll-top@latest
@@ -51,7 +79,19 @@ Import `NgxScrollTopModule` where needed
export class AppModule { }
```
-# Usage
+
+
+## Dependencies
+
+### Styling UX - Angular Material
+
+ You should have an Angular Material theme set up prior to using this. It's also possible to use this without an angular theme and style it yourself entirely!
+
+More information on theming Angular Material: https://material.angular.io/guide/theming
+
+
+
+## Usage
Default (blue button with white icon)
```html
@@ -73,7 +113,9 @@ Customization with optional inputs and icon
>⇮
```
-# Component API
+
+
+## Component API
| Input | Value Typing | Default Value | Description |
| ---------------------- | --------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -87,7 +129,9 @@ Customization with optional inputs and icon
| **width** | string | `'40px'` | Width of back to top button in string px format. |
| **zIndex** | number | `999` | Style the `z-index` for the back to top button as needed for correct layer height adjustment. This can be useful when working with sticky headers. |
-# Compatibility
+
+
+## Compatibility
| Angular version | @proangular/ngx-scroll-top | Install |
| --------------- | -------------------------- | ------------------------------------------ |
@@ -95,7 +139,9 @@ Customization with optional inputs and icon
| v13 | v1.x.x | `ng add @proangular/ngx-scroll-top@latest` |
| v12 | v1.x.x | `ng add @proangular/ngx-scroll-top@latest` |
-# Development
+
+
+## Issues & Contribution
Please submit all issues, and feature requests here: [https://github.com/ProAngular/ngx-scroll-top/issues](https://github.com/ProAngular/ngx-scroll-top/issues)
@@ -115,13 +161,17 @@ Contribution:
Thank you for any and all contributions!
-# Donation
+
+
+## Donation
As a husband and father of four children, your donations mean the world to me! Any donations are greatly appreciated and keep me going!
* [https://www.paypal.me/CodyTolene](https://www.paypal.me/CodyTolene)
* [https://github.com/sponsors/ProAngular](https://github.com/sponsors/ProAngular)
-# License
+
+
+## License
Copyright © 2022 [Cody Tolene](https://www.CodyTolene.com)
diff --git a/package-lock.json b/package-lock.json
index 1ad24f5..4ea8e3c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "@proangular/ngx-scroll-top",
- "version": "1.1.6",
+ "version": "1.1.7",
"lockfileVersion": 2,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index f0dba9c..9116de7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@proangular/ngx-scroll-top",
- "version": "1.1.6",
+ "version": "1.1.7",
"description": "Configurable, lightweight back to top button for Angular projects.",
"author": "Pro Angular ",
"homepage": "https://www.proangular.com",