Skip to content

Commit

Permalink
docs(links): hide back to readme links (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
infoxicator authored Aug 28, 2020
1 parent e4db567 commit 51ded8b
Show file tree
Hide file tree
Showing 20 changed files with 52 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ dist
/index.*

one*tgz
.idea
3 changes: 2 additions & 1 deletion docs/Demo.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# One Service Worker Demo

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../README.md)
<!--ONE-DOCS-HIDE end-->

For convenience, we have a demo project to run for exploring the service worker
and the library. We've bound a few `npm` scripts that can be run to manage the demo.
Expand Down
2 changes: 2 additions & 0 deletions docs/Development.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Developing with the library

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../README.md)
<!--ONE-DOCS-HIDE end-->

For those developing in this library, there are several tools to create a richer
DX for users and better explanation of failures during library usage.
Expand Down
4 changes: 3 additions & 1 deletion docs/api/Cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@

# Cache

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../../README.md)

[👆 Back to `API`](./README.md)
<!--ONE-DOCS-HIDE end-->

## 📖 Table of Contents

Expand Down Expand Up @@ -594,4 +596,4 @@ export async function deleteMetaForKey(key) {

&nbsp;

[☝️ Return To Top](#-&#x1F4D6;-table-of-contents)
[☝️ Return To Top](#-&#x1F4D6;-table-of-contents)
5 changes: 3 additions & 2 deletions docs/api/Core.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@
[handbook-docs]: ../../docs/Handbook.md

# Core

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../../README.md)

[👆 Back to `API`](./README.md)
<!--ONE-DOCS-HIDE end-->

## 📖 Table of Contents

Expand Down Expand Up @@ -499,4 +500,4 @@ export async function getAllTags() {

&nbsp;

[☝️ Return To Top](#-&#x1F4D6;-table-of-contents)
[☝️ Return To Top](#-&#x1F4D6;-table-of-contents)
5 changes: 3 additions & 2 deletions docs/api/Errors.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Errors

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../../README.md)

[👆 Back to `API`](./README.md)
<!--ONE-DOCS-HIDE end-->

## 📖 Table of Contents

Expand Down Expand Up @@ -97,4 +98,4 @@ exception.reject().catch(onError);

&nbsp;

[☝️ Return To Top](#-&#x1F4D6;-table-of-contents)
[☝️ Return To Top](#-&#x1F4D6;-table-of-contents)
5 changes: 3 additions & 2 deletions docs/api/Events.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Event System

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../../README.md)

[👆 Back to `API`](./README.md)
<!--ONE-DOCS-HIDE end-->

## 📖 Table of Contents

Expand Down Expand Up @@ -251,4 +252,4 @@ createMiddlewareContext({

&nbsp;

[☝️ Return To Top](#-&#x1F4D6;-table-of-contents)
[☝️ Return To Top](#-&#x1F4D6;-table-of-contents)
3 changes: 2 additions & 1 deletion docs/api/Middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
[cache-clear-docs]: ../cache/README.md#clear

# Service Worker Middleware

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../../README.md)

[👆 Back to `API`](./README.md)
<!--ONE-DOCS-HIDE end-->

## 📖 Table of Contents

Expand Down
2 changes: 2 additions & 0 deletions docs/api/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!--ONE-DOCS-HIDE start-->
[👈 Return to README](../../README.md)
<!--ONE-DOCS-HIDE end-->

# 🎛️ API

Expand Down
3 changes: 2 additions & 1 deletion docs/api/Runtime.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Runtime

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../../README.md)

[👆 Back to `API`](./README.md)
<!--ONE-DOCS-HIDE end-->

## 📖 Table of Contents

Expand Down
5 changes: 3 additions & 2 deletions docs/api/Validation.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Validation

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../../README.md)

[👆 Back to `API`](./README.md)
<!--ONE-DOCS-HIDE end-->

## 📖 Table of Contents

Expand Down Expand Up @@ -64,4 +65,4 @@ const cacheOptions = {

&nbsp;

[☝️ Return To Top](#-&#x1F4D6;-table-of-contents)
[☝️ Return To Top](#-&#x1F4D6;-table-of-contents)
5 changes: 3 additions & 2 deletions docs/recipes/Analytics.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Analytics

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../../README.md)

[👆 Back to `Recipes`](./README.md)
<!--ONE-DOCS-HIDE end-->

### Overview

Expand Down Expand Up @@ -291,4 +292,4 @@ register('/sw.js', {

```

[☝️ Return To Top](#-analytics)
[☝️ Return To Top](#-analytics)
5 changes: 3 additions & 2 deletions docs/recipes/Basics.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Service Worker Basics

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../../README.md)

[👆 Back to `Recipes`](./README.md)
<!--ONE-DOCS-HIDE end-->

## 📖 Table of Contents

Expand Down Expand Up @@ -300,4 +301,4 @@ on('message', [

```

[☝️ Return To Top](#-service-worker-basics)
[☝️ Return To Top](#-service-worker-basics)
5 changes: 3 additions & 2 deletions docs/recipes/BestPractices.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[clear-site-data-header]: https://w3c.github.io/webappsec-clear-site-data/#example-killswitch

# Best Practices

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../../README.md)

[👆 Back to `Recipes`](./README.md)
<!--ONE-DOCS-HIDE end-->

## 📖 Table of Contents

Expand Down Expand Up @@ -126,4 +127,4 @@ It might be beneficial to create an `html` document that would be cached on
lifecycle events for users to manually intervene and manage the cache on their
browser as well as remove the service worker altogether.

[☝️ Return To Top](#-&#x1F4D6;-table-of-contents)
[☝️ Return To Top](#-&#x1F4D6;-table-of-contents)
5 changes: 3 additions & 2 deletions docs/recipes/Cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
[cache-api]: https://developer.mozilla.org/en-US/docs/Web/API/Cache

# Caching

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../../README.md)

[👆 Back to `Recipes`](./README.md)
<!--ONE-DOCS-HIDE end-->

With the [`caches` CacheStorage][cache-storage-api] and [`cache` Cache][cache-api], we can create and manage
a service worker first caching solution.
Expand Down Expand Up @@ -92,4 +93,4 @@ is when you are sure you want to handle the `fetch` response.
})();
```

[☝️ Return To Top](#-caching)
[☝️ Return To Top](#-caching)
5 changes: 3 additions & 2 deletions docs/recipes/Patterns.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Patterns

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../../README.md)

[👆 Back to `Recipes`](./README.md)
<!--ONE-DOCS-HIDE end-->

## Scope based service worker scripts

Expand Down Expand Up @@ -88,4 +89,4 @@ An advantage of scope based service workers is having the client-side decide whe
to register a service worker at a given scope, based on the needs of the client
side component.

[☝️ Return To Top](#-patterns)
[☝️ Return To Top](#-patterns)
4 changes: 3 additions & 1 deletion docs/recipes/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!--ONE-DOCS-HIDE start-->
[👈 Return to README](../../README.md)
<!--ONE-DOCS-HIDE end-->

# 👩‍🍳 Recipes

Expand All @@ -11,4 +13,4 @@
* [With React](./WithReact.md)
* [Testing A Service Worker](./Testing.md)

[☝️ Return To Top](#-recipes)
[☝️ Return To Top](#-recipes)
3 changes: 2 additions & 1 deletion docs/recipes/Testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
[fake-indexeddb]: https://github.com/dumbmatter/fakeIndexedDB

# Testing

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../../README.md)

[👆 Back to `Recipes`](./README.md)
<!--ONE-DOCS-HIDE end-->

## 📖 Table of Contents

Expand Down
5 changes: 3 additions & 2 deletions docs/recipes/WebPush.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[web-push-nodejs]: https://github.com/web-push-libs/web-push

# Web Push

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../../README.md)

[👆 Back to `Recipes`](./README.md)
<!--ONE-DOCS-HIDE end-->

**Before starting, take note of the script names**
- `/sw.js` will be the service worker script
Expand Down Expand Up @@ -395,4 +396,4 @@ express()

```

[☝️ Return To Top](#-web-push)
[☝️ Return To Top](#-web-push)
5 changes: 3 additions & 2 deletions docs/recipes/WithReact.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# React usage

<!--ONE-DOCS-HIDE start-->
[👈 Go to `README`](../../README.md)

[👆 Back to `Recipes`](./README.md)
<!--ONE-DOCS-HIDE end-->

It can be beneficial to register a service worker as early as possible during app start.
In this example, we use a functional component to register a service worker and set
Expand Down Expand Up @@ -39,4 +40,4 @@ export default function App() {
}
```

[☝️ Return To Top](#-react-usage)
[☝️ Return To Top](#-react-usage)

0 comments on commit 51ded8b

Please sign in to comment.