You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pouchdb.apache.org by ja...@apache.org on 2026/06/03 14:17:04 UTC
(pouchdb) branch master updated (0e3c3bcfa -> 80d716958)
This is an automated email from the ASF dual-hosted git repository.
janl pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
from 0e3c3bcfa chore(deps-dev): bump liquidjs from 10.25.5 to 10.27.0 (#9251)
new 4b3ada682 fix: remove gravatar, host avatars in repo, and allow authors without avatar images
new e491c49a2 chore: remove google analytics from website
new f93c06fc7 refactor: self-host fonts instead of using google fonts
new aede6318e refactor: pull bootstrap and jquery js files into repo
new 004d892b3 refactor: self-host pouchdb.min.js instead of pulling from CDN
new 9b61a3d79 docs: add new WEBSITE_README.md
new 6d712ee17 fix: proper path for hosted pouchdb.min.js in default layout
new 83bbe387d docs: add info on new releases and website deployment to the website readme
new 348fe6a9b fix: correct pubDate format in website feed.xml
new e15265c91 fix: website asset paths. insert missing site.baseurl in a variety of places
new d9d94e3b8 fix: make css font asset paths relative
new 80d716958 fix: no www in pouchdb.com
The 12 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
CONTRIBUTING.md | 2 +-
README.md | 29 +++----
docs/WEBSITE_README.md | 53 +++++++++++++
docs/_data/authors.json | 19 +++--
docs/_includes/default.html | 24 ++----
docs/_includes/post_details.html | 10 +--
docs/feed.xml.liquid | 2 +-
docs/manifest.appcache.liquid | 86 ++++++++++-----------
docs/serviceWorker.js.liquid | 9 ++-
docs/src/less/pouchdb/type.less | 25 ++++++
docs/static/fonts/LatoLatin-Medium.woff2 | Bin 0 -> 43920 bytes
.../fonts/open-sans-v44-latin_latin-ext-700.woff2 | Bin 0 -> 24672 bytes
.../open-sans-v44-latin_latin-ext-regular.woff2 | Bin 0 -> 25432 bytes
docs/static/img/authors/alba_herreiras.png | Bin 0 -> 14707 bytes
docs/static/img/authors/calvin_metcalf.jpeg | Bin 0 -> 4160 bytes
docs/static/img/authors/dale_harvey.jpeg | Bin 0 -> 3753 bytes
docs/static/img/authors/gareth_bowen.png | Bin 0 -> 13317 bytes
docs/static/img/authors/garren_smith.png | Bin 0 -> 13270 bytes
docs/static/img/authors/giovanni_ornaghi.jpeg | Bin 0 -> 3398 bytes
docs/static/img/authors/nick_colley.jpeg | Bin 0 -> 4025 bytes
docs/static/img/authors/nolan_lawson.png | Bin 0 -> 11128 bytes
docs/static/js/bootstrap.min.js | 6 ++
docs/static/js/jquery.min.js | 5 ++
docs/static/js/pouchdb.min.js | 8 ++
eleventy.config.js | 27 +++++++
25 files changed, 203 insertions(+), 102 deletions(-)
create mode 100644 docs/WEBSITE_README.md
create mode 100644 docs/static/fonts/LatoLatin-Medium.woff2
create mode 100644 docs/static/fonts/open-sans-v44-latin_latin-ext-700.woff2
create mode 100644 docs/static/fonts/open-sans-v44-latin_latin-ext-regular.woff2
create mode 100644 docs/static/img/authors/alba_herreiras.png
create mode 100644 docs/static/img/authors/calvin_metcalf.jpeg
create mode 100644 docs/static/img/authors/dale_harvey.jpeg
create mode 100644 docs/static/img/authors/gareth_bowen.png
create mode 100644 docs/static/img/authors/garren_smith.png
create mode 100644 docs/static/img/authors/giovanni_ornaghi.jpeg
create mode 100644 docs/static/img/authors/nick_colley.jpeg
create mode 100644 docs/static/img/authors/nolan_lawson.png
create mode 100644 docs/static/js/bootstrap.min.js
create mode 100644 docs/static/js/jquery.min.js
create mode 100644 docs/static/js/pouchdb.min.js
(pouchdb) 12/12: fix: no www in pouchdb.com
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
janl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
commit 80d716958a28ccce3a10c69e5533e1db263d2df6
Author: Alex Feyerke <al...@neighbourhood.ie>
AuthorDate: Tue Jun 2 15:30:27 2026 +0200
fix: no www in pouchdb.com
---
README.md | 4 ++--
docs/WEBSITE_README.md | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 1d34a2267..0b23839cb 100644
--- a/README.md
+++ b/README.md
@@ -40,8 +40,8 @@ We're always looking for new contributors! If you'd like to try your hand at wri
If you have a pull request that you'd like to submit, please read the [contributing guide](https://github.com/pouchdb/pouchdb/blob/master/CONTRIBUTING.md) for info on style, commit message format, and other (slightly!) nitpicky things like that. PouchDB is heavily tested, so you'll also want to check out the [testing guide](https://github.com/pouchdb/pouchdb/blob/master/TESTING.md).
-## The www.pouchdb.com Website
+## The pouchdb.com Website
-The documentation website at [www.pouchdb.com](www.pouchdb.com) is also part of this repo, in the `/docs` folder. It has its own `/docs/WEBSITE_README.md`
+The documentation website at [pouchdb.com](pouchdb.com) is also part of this repo, in the `/docs` folder. It has its own `/docs/WEBSITE_README.md`
Website deployment happens automatically once the changes land in `master`.
\ No newline at end of file
diff --git a/docs/WEBSITE_README.md b/docs/WEBSITE_README.md
index 031ef3ebd..23994c525 100644
--- a/docs/WEBSITE_README.md
+++ b/docs/WEBSITE_README.md
@@ -1,4 +1,4 @@
-# www.pouchdb.com
+# pouchdb.com
This is the PouchDB documentation site, built with [11ty](http://11ty.dev/), a node.js static site generator.
(pouchdb) 10/12: fix: website asset paths. insert missing site.baseurl in a variety of places
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
janl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
commit e15265c91a867d0b1c9c1920044961551a15e621
Author: Alex Feyerke <al...@neighbourhood.ie>
AuthorDate: Tue Jun 2 14:28:27 2026 +0200
fix: website asset paths. insert missing site.baseurl in a variety of places
---
docs/_includes/default.html | 4 +-
docs/_includes/post_details.html | 2 +-
docs/manifest.appcache.liquid | 80 ++++++++++++++++++++--------------------
docs/serviceWorker.js.liquid | 20 +++++-----
4 files changed, 53 insertions(+), 53 deletions(-)
diff --git a/docs/_includes/default.html b/docs/_includes/default.html
index 218555bfd..d18d7f7c1 100644
--- a/docs/_includes/default.html
+++ b/docs/_includes/default.html
@@ -1,10 +1,10 @@
<!DOCTYPE html>
-<html lang="en" manifest="/manifest.appcache">
+<html lang="en" manifest="{{ site.baseurl }}/manifest.appcache">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ title }}</title>
- <link rel="alternate" title="{{ site.description }}" type="application/rss+xml" href="/feed.xml">
+ <link rel="alternate" title="{{ site.description }}" type="application/rss+xml" href="{{ site.baseurl }}/feed.xml">
<link rel="stylesheet" href="{{ site.baseurl }}/static/css/pouchdb.min.css" />
<link rel="me" href="https://fosstodon.org/@pouchdb" />
<meta name="theme-color" content="#6ccb99">
diff --git a/docs/_includes/post_details.html b/docs/_includes/post_details.html
index 82391862a..cf7298ee9 100644
--- a/docs/_includes/post_details.html
+++ b/docs/_includes/post_details.html
@@ -16,7 +16,7 @@
{% capture post_author %}<a href="https://twitter.com/{{a.twitter}}">{{ author }}</a>{% endcapture %}
{% endif %}
{% if a.avatar %}
- {% capture avatar %}<img class="pull-left media-object img-circle img-responsive" src='/static/img/authors/{{ a.avatar }}' alt='{{ author }}'>{% endcapture %}
+ {% capture avatar %}<img class="pull-left media-object img-circle img-responsive" src='{{ site.baseurl }}/static/img/authors/{{ a.avatar }}' alt='{{ author }}'>{% endcapture %}
{% endif %}
{% endif %}
{% endfor %}
diff --git a/docs/manifest.appcache.liquid b/docs/manifest.appcache.liquid
index bc5c3931e..6a54daa3a 100644
--- a/docs/manifest.appcache.liquid
+++ b/docs/manifest.appcache.liquid
@@ -14,46 +14,46 @@ CACHE:
{% for page in collections.posts %}{{ page.url | replace:'index.html','' }}
{% endfor %}
-/static/css/pouchdb.min.css
-/static/favicon.ico
-/static/js/code.min.js
-
-/static/js/jquery.min.js
-/static/js/bootstrap.min.js
-/static/js/pouchdb.min.js
-
-/static/fonts/LatoLatin-Medium.woff2
-/static/fonts//open-sans-v44-latin_latin-ext-regular.woff2
-/static/fonts//open-sans-v44-latin_latin-ext-700.woff2
-
-/static/img/apple-indexeddb.png
-/static/img/cors_in_couchdb.png
-/static/img/fauxton.png
-/static/img/kittens.jpg
-/static/img/logo.svg
-/static/img/safari_popup.png
-/static/img/dev_tools.png
-/static/img/kittens_small.jpg
-/static/img/icon-edit.svg
-/static/img/screenshots/todo-1.png
-/static/img/travis-screenshot.png
-
-/static/img/friends/couchdb.svg
-/static/img/friends/github.svg
-/static/img/friends/leveldb.svg
-/static/img/friends/bluesky.svg
-/static/img/friends/mastodon.svg
-
-/static/img/browser-logos/android_32x32.png
-/static/img/browser-logos/chrome-android_32x32.png
-/static/img/browser-logos/firefox_32x32.png
-/static/img/browser-logos/internet-explorer_32x32.png
-/static/img/browser-logos/safari-ios_32x32.png
-/static/img/browser-logos/blackberry_32x32.png
-/static/img/browser-logos/chrome_32x32.png
-/static/img/browser-logos/internet-explorer-tile_32x32.png
-/static/img/browser-logos/opera_32x32.png
-/static/img/browser-logos/safari_32x32.png
+{{ site.baseurl }}/static/css/pouchdb.min.css
+{{ site.baseurl }}/static/favicon.ico
+{{ site.baseurl }}/static/js/code.min.js
+
+{{ site.baseurl }}/static/js/jquery.min.js
+{{ site.baseurl }}/static/js/bootstrap.min.js
+{{ site.baseurl }}/static/js/pouchdb.min.js
+
+{{ site.baseurl }}/static/fonts/LatoLatin-Medium.woff2
+{{ site.baseurl }}/static/fonts//open-sans-v44-latin_latin-ext-regular.woff2
+{{ site.baseurl }}/static/fonts//open-sans-v44-latin_latin-ext-700.woff2
+
+{{ site.baseurl }}/static/img/apple-indexeddb.png
+{{ site.baseurl }}/static/img/cors_in_couchdb.png
+{{ site.baseurl }}/static/img/fauxton.png
+{{ site.baseurl }}/static/img/kittens.jpg
+{{ site.baseurl }}/static/img/logo.svg
+{{ site.baseurl }}/static/img/safari_popup.png
+{{ site.baseurl }}/static/img/dev_tools.png
+{{ site.baseurl }}/static/img/kittens_small.jpg
+{{ site.baseurl }}/static/img/icon-edit.svg
+{{ site.baseurl }}/static/img/screenshots/todo-1.png
+{{ site.baseurl }}/static/img/travis-screenshot.png
+
+{{ site.baseurl }}/static/img/friends/couchdb.svg
+{{ site.baseurl }}/static/img/friends/github.svg
+{{ site.baseurl }}/static/img/friends/leveldb.svg
+{{ site.baseurl }}/static/img/friends/bluesky.svg
+{{ site.baseurl }}/static/img/friends/mastodon.svg
+
+{{ site.baseurl }}/static/img/browser-logos/android_32x32.png
+{{ site.baseurl }}/static/img/browser-logos/chrome-android_32x32.png
+{{ site.baseurl }}/static/img/browser-logos/firefox_32x32.png
+{{ site.baseurl }}/static/img/browser-logos/internet-explorer_32x32.png
+{{ site.baseurl }}/static/img/browser-logos/safari-ios_32x32.png
+{{ site.baseurl }}/static/img/browser-logos/blackberry_32x32.png
+{{ site.baseurl }}/static/img/browser-logos/chrome_32x32.png
+{{ site.baseurl }}/static/img/browser-logos/internet-explorer-tile_32x32.png
+{{ site.baseurl }}/static/img/browser-logos/opera_32x32.png
+{{ site.baseurl }}/static/img/browser-logos/safari_32x32.png
NETWORK:
*
diff --git a/docs/serviceWorker.js.liquid b/docs/serviceWorker.js.liquid
index 04d5aff52..b1312e25d 100644
--- a/docs/serviceWorker.js.liquid
+++ b/docs/serviceWorker.js.liquid
@@ -9,11 +9,11 @@ permalink: /serviceWorker.js
var newCacheName = 'pouchdb-assets-cache-v{{ site.time }}';
var criticalAssets = [
- '/offline.html',
- '/static/css/pouchdb.min.css',
- '/static/fonts/LatoLatin-Medium.woff2',
- '/static/fonts//open-sans-v44-latin_latin-ext-regular.woff2',
- '/static/fonts//open-sans-v44-latin_latin-ext-700.woff2'
+ '{{ site.baseurl }}/offline.html',
+ '{{ site.baseurl }}/static/css/pouchdb.min.css',
+ '{{ site.baseurl }}/static/fonts/LatoLatin-Medium.woff2',
+ '{{ site.baseurl }}/static/fonts//open-sans-v44-latin_latin-ext-regular.woff2',
+ '{{ site.baseurl }}/static/fonts//open-sans-v44-latin_latin-ext-700.woff2'
];
{%- assign pages = collections.pages | where_exp: "page", "page.url != '/manifest.appcache'" -%}
@@ -31,11 +31,11 @@ var blogPosts = [{% for page in collections.posts %}
// Only cache the first blog page
var nonCriticalAssets =
[
- '/static/favicon.ico',
- '/static/js/code.min.js',
- '/static/js/jquery.min.js',
- '/static/js/bootstrap.min.js',
- '/static/js/pouchdb.min.js',
+ '{{ site.baseurl }}/static/favicon.ico',
+ '{{ site.baseurl }}/static/js/code.min.js',
+ '{{ site.baseurl }}/static/js/jquery.min.js',
+ '{{ site.baseurl }}/static/js/bootstrap.min.js',
+ '{{ site.baseurl }}/static/js/pouchdb.min.js',
]
.concat(pages)
.filter(function (file) {
(pouchdb) 11/12: fix: make css font asset paths relative
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
janl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
commit d9d94e3b80a2ae9ef2431be113f0458219eefd4c
Author: Alex Feyerke <al...@neighbourhood.ie>
AuthorDate: Tue Jun 2 14:28:46 2026 +0200
fix: make css font asset paths relative
---
docs/src/less/pouchdb/type.less | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/src/less/pouchdb/type.less b/docs/src/less/pouchdb/type.less
index 2c1321cf5..4169d107f 100644
--- a/docs/src/less/pouchdb/type.less
+++ b/docs/src/less/pouchdb/type.less
@@ -2,7 +2,7 @@
@font-face {
font-family: 'Lato';
- src: url('/static/fonts/LatoLatin-Medium.woff2') format('woff2');
+ src: url('../fonts/LatoLatin-Medium.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap; /* Improves performance */
@@ -14,7 +14,7 @@
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
- src: url('/static/fonts//open-sans-v44-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
+ src: url('../fonts/open-sans-v44-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700 - latin_latin-ext */
@font-face {
@@ -22,7 +22,7 @@
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
- src: url('/static/fonts//open-sans-v44-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
+ src: url('../fonts/open-sans-v44-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
h1, h2, h3, h4, h5, h6,
(pouchdb) 02/12: chore: remove google analytics from website
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
janl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
commit e491c49a2e6b06dda1297645cf359050081e62d3
Author: Alex Feyerke <al...@neighbourhood.ie>
AuthorDate: Tue May 12 14:31:01 2026 +0200
chore: remove google analytics from website
---
docs/_includes/default.html | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/docs/_includes/default.html b/docs/_includes/default.html
index 3359d27ba..edaf87335 100644
--- a/docs/_includes/default.html
+++ b/docs/_includes/default.html
@@ -9,17 +9,6 @@
<link rel="me" href="https://fosstodon.org/@pouchdb" />
<meta name="theme-color" content="#6ccb99">
<meta name="msapplication-TileColor" content="#6ccb99">
- <script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-42479701-1']);
- _gaq.push(['_trackPageview']);
-
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
<link href='//fonts.googleapis.com/css?family=Lato:400,700|Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="icon" href="{{ site.baseurl }}/static/favicon.ico" type="image/x-icon"/>
</head>
(pouchdb) 07/12: fix: proper path for hosted pouchdb.min.js in default layout
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
janl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
commit 6d712ee17a131568a1c96d5841c823508fc42f59
Author: Alex Feyerke <al...@neighbourhood.ie>
AuthorDate: Tue Jun 2 11:35:03 2026 +0200
fix: proper path for hosted pouchdb.min.js in default layout
---
docs/_includes/default.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/_includes/default.html b/docs/_includes/default.html
index bcda870c2..218555bfd 100644
--- a/docs/_includes/default.html
+++ b/docs/_includes/default.html
@@ -204,8 +204,8 @@
<script type="text/javascript" src="{{ site.baseurl }}/static/js/jquery.min.js"></script>
<script type="text/javascript" src="{{ site.baseurl }}/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="{{ site.baseurl }}/static/js/code.min.js"></script>
- <script type="text/javascript" src="{{ site.baseurl }}/pouchdb.min.js"></script>
- <script type="text/javascript">
+ <script type="text/javascript" src="{{ site.baseurl }}/static/js/pouchdb.min.js"></script>
+ <script type="text/javascript" defer>
$('[data-toggle="tooltip"]').tooltip();
function onCached(e) {
if (applicationCache.status === 1) {
(pouchdb) 06/12: docs: add new WEBSITE_README.md
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
janl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
commit 9b61a3d797d9b40ecac166e01eadb8178fc9708a
Author: Alex Feyerke <al...@neighbourhood.ie>
AuthorDate: Tue Jun 2 11:34:40 2026 +0200
docs: add new WEBSITE_README.md
---
README.md | 29 ++++++++++++-----------------
docs/WEBSITE_README.md | 40 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 52 insertions(+), 17 deletions(-)
diff --git a/README.md b/README.md
index 2cd488685..1d34a2267 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,4 @@
-[PouchDB](https://pouchdb.com/) – The Database that Syncs!
-=========
+# [PouchDB](https://pouchdb.com/) – The Database that Syncs!
[](https://github.com/pouchdb/pouchdb/actions/workflows/ci.yml?query=branch%3Amaster) [](https://www.npmjs.com/package/pouchdb) [](https://www.jsdelivr.com/package/npm/pouchdb)
@@ -7,25 +6,17 @@ PouchDB is an open-source JavaScript database inspired by [Apache CouchDB](http:
PouchDB was created to help web developers build applications that work as well offline as they do online.
-Using PouchDB
--------------
+## Using PouchDB
To get started using PouchDB, check out the [web site](https://pouchdb.com) and [API documentation](https://pouchdb.com/api.html).
-Deploying the Documentation Site www.pouchdb.com
-------------------------------------------------
-
-Doc website deployment is handled automatically once the changes land in `master`.
-
-Getting Help
-------------
+## Getting Help
The PouchDB community is active [in `#pouchdb` on the CouchDB Slack](https://join.slack.com/t/couchdb/shared_invite/zt-3aqucllea-C92fkzW5oO_VhllRCqFbcw), in [the Google Groups mailing list](https://groups.google.com/forum/#!forum/pouchdb), and [on StackOverflow](http://stackoverflow.com/questions/tagged/pouchdb). Or you can [mastodon @pouchdb](https://fosstodon.org/@pouchdb)!
If you think you've found a bug in PouchDB, please write a reproducible test case and file [a Github issue](https://github.com/pouchdb/pouchdb/issues).
-Prerelease builds
-----
+## Prerelease builds
If you like to live on the bleeding edge, you can build PouchDB from source using these steps:
@@ -35,8 +26,7 @@ If you like to live on the bleeding edge, you can build PouchDB from source usin
After running these steps, the browser build can be found in `packages/node_modules/pouchdb/dist/pouchdb.js`.
-Changelog
-----
+## Changelog
PouchDB follows [semantic versioning](http://semver.org/). To see a changelog with all PouchDB releases, check out the [Github releases page](https://github.com/pouchdb/pouchdb/releases).
@@ -44,9 +34,14 @@ For a concise list of breaking changes, there's the [wiki list of breaking chang
Keep in mind that PouchDB is auto-migrating, so a database created in 1.0.0 will still work if you open it in 4.0.0+. Any release containing a migration is clearly marked in the release notes.
-Contributing
-------------
+## Contributing
We're always looking for new contributors! If you'd like to try your hand at writing code, writing documentation, designing the website, writing a blog post, or answering [questions on StackOverflow](http://stackoverflow.com/search?tab=newest&q=pouchdb), then we'd love to have your input.
If you have a pull request that you'd like to submit, please read the [contributing guide](https://github.com/pouchdb/pouchdb/blob/master/CONTRIBUTING.md) for info on style, commit message format, and other (slightly!) nitpicky things like that. PouchDB is heavily tested, so you'll also want to check out the [testing guide](https://github.com/pouchdb/pouchdb/blob/master/TESTING.md).
+
+## The www.pouchdb.com Website
+
+The documentation website at [www.pouchdb.com](www.pouchdb.com) is also part of this repo, in the `/docs` folder. It has its own `/docs/WEBSITE_README.md`
+
+Website deployment happens automatically once the changes land in `master`.
\ No newline at end of file
diff --git a/docs/WEBSITE_README.md b/docs/WEBSITE_README.md
new file mode 100644
index 000000000..e0ad6b8be
--- /dev/null
+++ b/docs/WEBSITE_README.md
@@ -0,0 +1,40 @@
+# www.pouchdb.com
+
+This is the PouchDB documentation site, built with [11ty](http://11ty.dev/), a node.js static site generator.
+
+To run the site locally, in the repo root:
+
+```sh
+$ npm i
+$ npm run build-site
+```
+
+This starts a development server. It watches your files and should rebuild automatically in most cases, but it doesn’t reload the browser for you.
+
+You can have full hot reloading, but this doesn’t catch changes to the styles (LESS files):
+
+```sh
+$ npm run build11 -- --serve
+```
+
+To deactivate the dev server and run a regular build without the file watcher:
+
+```sh
+$ BUILD=1 npm run build-site
+```
+
+## Testing Serviceworker
+
+```sh
+$ npm i
+$ npm run build-site
+```
+
+By default, SW will only cache the pages you’ve seen plus `offline.html`, which it will show whenever you try to access a page offline that hasn’t been cached.
+
+To test the "Content updated, reload now?" toast that indicates that a new version of the site is available, run the dev server, make a change to the site (e.g. change some text somewhere), then navigate once or reload the page with a normal (not hard) reload. The update toast should show. When you click it, the page and the serviceworker cache will be updated.
+
+## Technology Choices
+
+The PouchDB website is over a decade old and some parts of it are somewhat out of date by now, but they haven’t been updated for good reasons. The most significant legacy bit is Bootstrap 3.11 in the LESS version, which depends on JQuery for interactivity. There is currently zero benefit to, for example, migrating to SASS/SCSS here or trying to untangle JQuery from Bootstrap in order to use vanilla JS. A design update is on the horizon, and we’ll take that as an opportunity to remove Boo [...]
+
(pouchdb) 04/12: refactor: pull bootstrap and jquery js files into repo
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
janl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
commit aede6318e7f2595ed84b2ffe5ec3f2ab1892601f
Author: Alex Feyerke <al...@neighbourhood.ie>
AuthorDate: Wed May 13 12:57:28 2026 +0200
refactor: pull bootstrap and jquery js files into repo
---
docs/_includes/default.html | 4 ++--
docs/manifest.appcache.liquid | 4 ++--
docs/serviceWorker.js.liquid | 8 ++++----
docs/static/js/bootstrap.min.js | 6 ++++++
docs/static/js/jquery.min.js | 5 +++++
5 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/docs/_includes/default.html b/docs/_includes/default.html
index 043898128..d914f8745 100644
--- a/docs/_includes/default.html
+++ b/docs/_includes/default.html
@@ -201,8 +201,8 @@
</div>
</footer>
- <script type="text/javascript" src="https://code.jquery.com/jquery.min.js"></script>
- <script type="text/javascript" src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
+ <script type="text/javascript" src="{{ site.baseurl }}/static/js/jquery.min.js"></script>
+ <script type="text/javascript" src="{{ site.baseurl }}/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="{{ site.baseurl }}/static/js/code.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/pouchdb/dist/pouchdb.min.js"></script>
<script type="text/javascript">
diff --git a/docs/manifest.appcache.liquid b/docs/manifest.appcache.liquid
index 197a52c8d..3feb0ad02 100644
--- a/docs/manifest.appcache.liquid
+++ b/docs/manifest.appcache.liquid
@@ -18,8 +18,8 @@ CACHE:
/static/favicon.ico
/static/js/code.min.js
-https://code.jquery.com/jquery.min.js
-https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js
+/static/js/jquery.min.js
+/static/js/bootstrap.min.js
https://cdn.jsdelivr.net/npm/pouchdb/dist/pouchdb.min.js
/static/fonts/LatoLatin-Medium.woff2
diff --git a/docs/serviceWorker.js.liquid b/docs/serviceWorker.js.liquid
index ccf2208fd..ec6d01e87 100644
--- a/docs/serviceWorker.js.liquid
+++ b/docs/serviceWorker.js.liquid
@@ -31,10 +31,10 @@ var blogPosts = [{% for page in collections.posts %}
// Only cache the first blog page
var nonCriticalAssets =
[
- '{{ site.baseurl }}/static/favicon.ico',
- '{{ site.baseurl }}/static/js/code.min.js',
- 'https://code.jquery.com/jquery.min.js',
- 'https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js',
+ '/static/favicon.ico',
+ '/static/js/code.min.js',
+ '/static/js/jquery.min.js',
+ '/static/js/bootstrap.min.js',
'https://cdn.jsdelivr.net/npm/pouchdb/dist/pouchdb.min.js',
]
.concat(pages)
diff --git a/docs/static/js/bootstrap.min.js b/docs/static/js/bootstrap.min.js
new file mode 100644
index 000000000..b04a0e82f
--- /dev/null
+++ b/docs/static/js/bootstrap.min.js
@@ -0,0 +1,6 @@
+/*!
+ * Bootstrap v3.1.1 (http://getbootstrap.com)
+ * Copyright 2011-2014 Twitter, Inc.
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+ */
+if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e= [...]
\ No newline at end of file
diff --git a/docs/static/js/jquery.min.js b/docs/static/js/jquery.min.js
new file mode 100644
index 000000000..ebbcf4191
--- /dev/null
+++ b/docs/static/js/jquery.min.js
@@ -0,0 +1,5 @@
+/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
+!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.1",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b [...]
+if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&& [...]
+},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this):Zb.propHooks._default.get(this)},run:function(a){var b,c=Zb.propHooks[this.prop];return this.pos=b=this.options.duration?m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Zb.propHooks._default.set(this),this}},Zb.prototype.init.prototype=Zb.prototype,Zb.prop [...]
+//# sourceMappingURL=jquery.min.map
\ No newline at end of file
(pouchdb) 09/12: fix: correct pubDate format in website feed.xml
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
janl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
commit 348fe6a9b134c8b162e365407f566c87b5d46ef7
Author: Alex Feyerke <al...@neighbourhood.ie>
AuthorDate: Tue Jun 2 14:25:48 2026 +0200
fix: correct pubDate format in website feed.xml
---
docs/feed.xml.liquid | 2 +-
eleventy.config.js | 27 +++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/docs/feed.xml.liquid b/docs/feed.xml.liquid
index 640b4ec0c..bd12ca401 100644
--- a/docs/feed.xml.liquid
+++ b/docs/feed.xml.liquid
@@ -19,7 +19,7 @@ permalink: /feed.xml
{% else %}
<description>{{ post.content | first_paragraph | xml_escape }}</description>
{% endif %}
- <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
+ <pubDate>{{ post.date | dateToRfc882 }}</pubDate>
<link>{{ site.url }}{{ post.url }}</link>
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
</item>
diff --git a/eleventy.config.js b/eleventy.config.js
index 6d0d82097..27f5011fd 100644
--- a/eleventy.config.js
+++ b/eleventy.config.js
@@ -96,6 +96,33 @@ module.exports = eleventyConfig => {
eleventyConfig.addFilter('markdown', content => md.render(content));
eleventyConfig.addPairedShortcode('markdown', content => md.render(content));
+ function pubDateRFC822(value, timeZone = undefined) {
+ const date = new Date(value);
+ const options = {
+ weekday: 'short',
+ day: '2-digit',
+ month: 'short',
+ year: 'numeric',
+
+ hour: '2-digit',
+ minute: '2-digit',
+ second: '2-digit',
+ hourCycle: 'h23',
+
+ timeZone: timeZone,
+ timeZoneName: 'longOffset',
+ };
+
+ const formattedDate = new Intl.DateTimeFormat('en-US', options).format(date);
+ const [wkd, mmm, dd, yyyy, time, z] = formattedDate.replace(/([,\s]+)/g, ' ').split(' ');
+ // This is valid regex, even if ESLint complains. It’s also not ignorable for some reason.
+ const tz = z.replace(/GMT(?<sign>\+|\-)(?<hour>\d\d):(?<minute>\d\d)/, '$<sign>$<hour>$<minute>');
+
+ return `${wkd}, ${dd} ${mmm} ${yyyy} ${time} ${tz}`;
+ }
+
+ eleventyConfig.addLiquidFilter("dateToRfc882", pubDateRFC822);
+
return {
dir: {
input: './docs',
(pouchdb) 01/12: fix: remove gravatar, host avatars in repo, and allow authors without avatar images
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
janl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
commit 4b3ada68211c1daf5d31f990a4af7b035b7634a6
Author: Alex Feyerke <al...@neighbourhood.ie>
AuthorDate: Tue May 12 14:30:11 2026 +0200
fix: remove gravatar, host avatars in repo, and allow authors without avatar images
---
CONTRIBUTING.md | 2 +-
docs/_data/authors.json | 19 +++++++++----------
docs/_includes/post_details.html | 10 ++++------
docs/static/img/authors/alba_herreiras.png | Bin 0 -> 14707 bytes
docs/static/img/authors/calvin_metcalf.jpeg | Bin 0 -> 4160 bytes
docs/static/img/authors/dale_harvey.jpeg | Bin 0 -> 3753 bytes
docs/static/img/authors/gareth_bowen.png | Bin 0 -> 13317 bytes
docs/static/img/authors/garren_smith.png | Bin 0 -> 13270 bytes
docs/static/img/authors/giovanni_ornaghi.jpeg | Bin 0 -> 3398 bytes
docs/static/img/authors/nick_colley.jpeg | Bin 0 -> 4025 bytes
docs/static/img/authors/nolan_lawson.png | Bin 0 -> 11128 bytes
11 files changed, 14 insertions(+), 17 deletions(-)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index ff498ecd5..5ffe5fead 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -117,7 +117,7 @@ Writing a blog post for PouchDB is exactly the same process as other contributio
### Steps
1. Open up an issue proposing the blog post if you need help getting ideas or structuring it.
-2. Add yourself as an author to https://github.com/pouchdb/pouchdb/blob/master/docs/_data/authors.yml. (Make sure you have a [Gravatar](http://en.gravatar.com/) too.)
+2. Add yourself as an author to https://github.com/pouchdb/pouchdb/blob/master/docs/_data/authors.yml, and optionally add an image of yourself in `/docs/static/img/authors`, check the existing files there for guidance on size and format.
3. Add a new blog post with the date that you expect it will be published (we can always change it later).
4. Write something!
5. Run `npm run build-site` and you will always have a fresh version of the site at localhost:4000. You may need to Cmd-Shift-R or Ctrl-Shift-R (hard refresh) to see the latest version, since we use AppCache.
diff --git a/docs/_data/authors.json b/docs/_data/authors.json
index af09e0a5c..192e5c8f5 100644
--- a/docs/_data/authors.json
+++ b/docs/_data/authors.json
@@ -4,62 +4,61 @@
"twitter": "nickcolley",
"github": "nickcolley",
"www": "http://nickcolley.co.uk",
- "gravatar": "d83613912d1a2511a784b99c703bdcf6"
+ "avatar": "nick_colley.jpeg"
},
{
"name": "Nolan Lawson",
"twitter": "nolanlawson",
"github": "nolanlawson",
"www": "http://nolanlawson.com",
- "gravatar": "c436dec61b906e27c963518d0ef1d972"
+ "avatar": "nolan_lawson.png"
},
{
"name": "Dale Harvey",
"twitter": "daleharvey",
"github": "daleharvey",
"www": "http://arandomurl.com",
- "gravatar": "030451d8cfc268d666bae9a7fe8d10ec"
+ "avatar": "dale_harvey.jpeg"
},
{
"name": "Calvin Metcalf",
"twitter": "CWMma",
"github": "calvinmetcalf",
"www": "http://calvinmetcalf.com/",
- "gravatar": "e8153037a068f1c32e546f82729a64a5"
+ "avatar": "calvin_metcalf.jpeg"
},
{
"name": "Giovanni Ornaghi",
"twitter": "sphaso",
"github": "sphaso",
"www": "https://it.linkedin.com/in/giovanniornaghi",
- "gravatar": "da853b1ad9ebe5e1c3ab5b340bb63b70"
+ "avatar": "giovanni_ornaghi.jpeg"
},
{
"name": "Garren Smith",
"twitter": "garrensmith",
"github": "garrensmith",
"www": "http://www.redcometlabs.com",
- "gravatar": "15fb22e15587c7c36e0aeb5bf3579b07"
+ "avatar": "garren_smith.png"
},
{
"name": "Will Holley",
"twitter": "wilhol",
"github": "willholley",
- "www": "https://github.com/willholley/",
- "gravatar": "059d287498c864868b910fb0db7c469b"
+ "www": "https://github.com/willholley/"
},
{
"name": "Gareth Bowen",
"twitter": "garethjtbowen",
"github": "garethbowen",
"www": "https://bowenwebdesign.co.nz",
- "gravatar": "eda4874d50a06c7a6b231ba3dd29c7c0"
+ "avatar": "gareth_bowen.png"
},
{
"name": "Alba Herrerías",
"twitter": "alba_dev",
"github": "AlbaHerrerias",
"www": "https://www.albaherrerias.dev",
- "gravatar": "da81e745b26ae8ca53fc77538599510f"
+ "avatar": "alba_herreiras.png"
}
]
diff --git a/docs/_includes/post_details.html b/docs/_includes/post_details.html
index 6704691e2..82391862a 100644
--- a/docs/_includes/post_details.html
+++ b/docs/_includes/post_details.html
@@ -8,15 +8,15 @@
{% endif %}
{% assign post_author = author %}
-{% assign post_gravatar = '' %}
+{% assign avatar = '' %}
{% for a in authors %}
{% if a.name == author %}
{% if a.twitter %}
{% capture post_author %}<a href="https://twitter.com/{{a.twitter}}">{{ author }}</a>{% endcapture %}
{% endif %}
- {% if a.gravatar %}
- {% capture post_gravatar %}https://gravatar.com/avatar/{{ a.gravatar }}{% endcapture %}
+ {% if a.avatar %}
+ {% capture avatar %}<img class="pull-left media-object img-circle img-responsive" src='/static/img/authors/{{ a.avatar }}' alt='{{ author }}'>{% endcapture %}
{% endif %}
{% endif %}
{% endfor %}
@@ -27,9 +27,7 @@
<div class="post">
<div class="media">
- <a class="pull-left" href="#">
- <img class="media-object img-circle img-responsive" src='{{ post_gravatar }}' alt='{{ author }}'>
- </a>
+ {{ avatar }}
<div class="media-body">
<p>
<strong>By:</strong> {{ post_author }}<br>
diff --git a/docs/static/img/authors/alba_herreiras.png b/docs/static/img/authors/alba_herreiras.png
new file mode 100644
index 000000000..c793ff80c
Binary files /dev/null and b/docs/static/img/authors/alba_herreiras.png differ
diff --git a/docs/static/img/authors/calvin_metcalf.jpeg b/docs/static/img/authors/calvin_metcalf.jpeg
new file mode 100644
index 000000000..911bbc7f4
Binary files /dev/null and b/docs/static/img/authors/calvin_metcalf.jpeg differ
diff --git a/docs/static/img/authors/dale_harvey.jpeg b/docs/static/img/authors/dale_harvey.jpeg
new file mode 100644
index 000000000..6f31bd92d
Binary files /dev/null and b/docs/static/img/authors/dale_harvey.jpeg differ
diff --git a/docs/static/img/authors/gareth_bowen.png b/docs/static/img/authors/gareth_bowen.png
new file mode 100644
index 000000000..96814ff22
Binary files /dev/null and b/docs/static/img/authors/gareth_bowen.png differ
diff --git a/docs/static/img/authors/garren_smith.png b/docs/static/img/authors/garren_smith.png
new file mode 100644
index 000000000..53cf1ee3f
Binary files /dev/null and b/docs/static/img/authors/garren_smith.png differ
diff --git a/docs/static/img/authors/giovanni_ornaghi.jpeg b/docs/static/img/authors/giovanni_ornaghi.jpeg
new file mode 100644
index 000000000..421800d61
Binary files /dev/null and b/docs/static/img/authors/giovanni_ornaghi.jpeg differ
diff --git a/docs/static/img/authors/nick_colley.jpeg b/docs/static/img/authors/nick_colley.jpeg
new file mode 100644
index 000000000..2514aa55a
Binary files /dev/null and b/docs/static/img/authors/nick_colley.jpeg differ
diff --git a/docs/static/img/authors/nolan_lawson.png b/docs/static/img/authors/nolan_lawson.png
new file mode 100644
index 000000000..0d2b9a2c1
Binary files /dev/null and b/docs/static/img/authors/nolan_lawson.png differ
(pouchdb) 03/12: refactor: self-host fonts instead of using google fonts
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
janl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
commit f93c06fc7386c57e9ff2a155d00d974b6f09ce7b
Author: Alex Feyerke <al...@neighbourhood.ie>
AuthorDate: Tue May 12 14:45:04 2026 +0200
refactor: self-host fonts instead of using google fonts
---
docs/_includes/default.html | 1 -
docs/manifest.appcache.liquid | 12 +++-------
docs/serviceWorker.js.liquid | 7 ++++--
docs/src/less/pouchdb/type.less | 25 +++++++++++++++++++++
docs/static/fonts/LatoLatin-Medium.woff2 | Bin 0 -> 43920 bytes
.../fonts/open-sans-v44-latin_latin-ext-700.woff2 | Bin 0 -> 24672 bytes
.../open-sans-v44-latin_latin-ext-regular.woff2 | Bin 0 -> 25432 bytes
7 files changed, 33 insertions(+), 12 deletions(-)
diff --git a/docs/_includes/default.html b/docs/_includes/default.html
index edaf87335..043898128 100644
--- a/docs/_includes/default.html
+++ b/docs/_includes/default.html
@@ -9,7 +9,6 @@
<link rel="me" href="https://fosstodon.org/@pouchdb" />
<meta name="theme-color" content="#6ccb99">
<meta name="msapplication-TileColor" content="#6ccb99">
- <link href='//fonts.googleapis.com/css?family=Lato:400,700|Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="icon" href="{{ site.baseurl }}/static/favicon.ico" type="image/x-icon"/>
</head>
diff --git a/docs/manifest.appcache.liquid b/docs/manifest.appcache.liquid
index 91cff3b04..197a52c8d 100644
--- a/docs/manifest.appcache.liquid
+++ b/docs/manifest.appcache.liquid
@@ -22,15 +22,9 @@ https://code.jquery.com/jquery.min.js
https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js
https://cdn.jsdelivr.net/npm/pouchdb/dist/pouchdb.min.js
-https://fonts.googleapis.com/css?family=Lato:400,700|Open+Sans:400,700
-https://fonts.gstatic.com/s/lato/v11/8qcEw_nrk_5HEcCpYdJu8BTbgVql8nDJpwnrE27mub0.woff2
-https://fonts.gstatic.com/s/lato/v11/MDadn8DQ_3oT6kvnUq_2rxTbgVql8nDJpwnrE27mub0.woff2
-https://fonts.gstatic.com/s/lato/v11/rZPI2gHXi8zxUjnybc2ZQFKPGs1ZzpMvnHX-7fPOuAc.woff2
-https://fonts.gstatic.com/s/lato/v11/MgNNr5y1C_tIEuLEmicLm1KPGs1ZzpMvnHX-7fPOuAc.woff2
-https://fonts.gstatic.com/s/opensans/v10/u-WUoqrET9fUeobQW7jkRZBw1xU1rKptJj_0jans920.woff2
-https://fonts.gstatic.com/s/opensans/v10/cJZKeOuBrn4kERxqtaUH3ZBw1xU1rKptJj_0jans920.woff2
-https://fonts.gstatic.com/s/opensans/v10/k3k702ZOKiLJc3WVjuplzCYtBUPDK3WL7KRKS_3q7OE.woff2
-https://fonts.gstatic.com/s/opensans/v10/k3k702ZOKiLJc3WVjuplzBampu5_7CjHW5spxoeN3Vs.woff2
+/static/fonts/LatoLatin-Medium.woff2
+/static/fonts//open-sans-v44-latin_latin-ext-regular.woff2
+/static/fonts//open-sans-v44-latin_latin-ext-700.woff2
/static/img/apple-indexeddb.png
/static/img/cors_in_couchdb.png
diff --git a/docs/serviceWorker.js.liquid b/docs/serviceWorker.js.liquid
index d3a1b8ed1..ccf2208fd 100644
--- a/docs/serviceWorker.js.liquid
+++ b/docs/serviceWorker.js.liquid
@@ -9,8 +9,11 @@ permalink: /serviceWorker.js
var newCacheName = 'pouchdb-assets-cache-v{{ site.time }}';
var criticalAssets = [
- '{{ site.baseurl }}/offline.html',
- '{{ site.baseurl }}/static/css/pouchdb.min.css',
+ '/offline.html',
+ '/static/css/pouchdb.min.css',
+ '/static/fonts/LatoLatin-Medium.woff2',
+ '/static/fonts//open-sans-v44-latin_latin-ext-regular.woff2',
+ '/static/fonts//open-sans-v44-latin_latin-ext-700.woff2'
];
{%- assign pages = collections.pages | where_exp: "page", "page.url != '/manifest.appcache'" -%}
diff --git a/docs/src/less/pouchdb/type.less b/docs/src/less/pouchdb/type.less
index f8f4cb86d..2c1321cf5 100644
--- a/docs/src/less/pouchdb/type.less
+++ b/docs/src/less/pouchdb/type.less
@@ -1,5 +1,30 @@
@import "@{bootstrap}/type.less";
+@font-face {
+ font-family: 'Lato';
+ src: url('/static/fonts/LatoLatin-Medium.woff2') format('woff2');
+ font-weight: 400;
+ font-style: normal;
+ font-display: swap; /* Improves performance */
+}
+
+/* open-sans-regular - latin_latin-ext */
+@font-face {
+ font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
+ font-family: 'Open Sans';
+ font-style: normal;
+ font-weight: 400;
+ src: url('/static/fonts//open-sans-v44-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
+}
+/* open-sans-700 - latin_latin-ext */
+@font-face {
+ font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
+ font-family: 'Open Sans';
+ font-style: normal;
+ font-weight: 700;
+ src: url('/static/fonts//open-sans-v44-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
+}
+
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
display: inline-block;
diff --git a/docs/static/fonts/LatoLatin-Medium.woff2 b/docs/static/fonts/LatoLatin-Medium.woff2
new file mode 100644
index 000000000..20251fe89
Binary files /dev/null and b/docs/static/fonts/LatoLatin-Medium.woff2 differ
diff --git a/docs/static/fonts/open-sans-v44-latin_latin-ext-700.woff2 b/docs/static/fonts/open-sans-v44-latin_latin-ext-700.woff2
new file mode 100644
index 000000000..9603b0dcc
Binary files /dev/null and b/docs/static/fonts/open-sans-v44-latin_latin-ext-700.woff2 differ
diff --git a/docs/static/fonts/open-sans-v44-latin_latin-ext-regular.woff2 b/docs/static/fonts/open-sans-v44-latin_latin-ext-regular.woff2
new file mode 100644
index 000000000..f20c980c1
Binary files /dev/null and b/docs/static/fonts/open-sans-v44-latin_latin-ext-regular.woff2 differ
(pouchdb) 05/12: refactor: self-host pouchdb.min.js instead of pulling from CDN
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
janl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
commit 004d892b3c7d5320c29fc15bdea220ab77804ae3
Author: Alex Feyerke <al...@neighbourhood.ie>
AuthorDate: Wed May 13 15:31:06 2026 +0200
refactor: self-host pouchdb.min.js instead of pulling from CDN
---
docs/_includes/default.html | 2 +-
docs/manifest.appcache.liquid | 2 +-
docs/serviceWorker.js.liquid | 2 +-
docs/static/js/pouchdb.min.js | 8 ++++++++
4 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/docs/_includes/default.html b/docs/_includes/default.html
index d914f8745..bcda870c2 100644
--- a/docs/_includes/default.html
+++ b/docs/_includes/default.html
@@ -204,7 +204,7 @@
<script type="text/javascript" src="{{ site.baseurl }}/static/js/jquery.min.js"></script>
<script type="text/javascript" src="{{ site.baseurl }}/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="{{ site.baseurl }}/static/js/code.min.js"></script>
- <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/pouchdb/dist/pouchdb.min.js"></script>
+ <script type="text/javascript" src="{{ site.baseurl }}/pouchdb.min.js"></script>
<script type="text/javascript">
$('[data-toggle="tooltip"]').tooltip();
function onCached(e) {
diff --git a/docs/manifest.appcache.liquid b/docs/manifest.appcache.liquid
index 3feb0ad02..bc5c3931e 100644
--- a/docs/manifest.appcache.liquid
+++ b/docs/manifest.appcache.liquid
@@ -20,7 +20,7 @@ CACHE:
/static/js/jquery.min.js
/static/js/bootstrap.min.js
-https://cdn.jsdelivr.net/npm/pouchdb/dist/pouchdb.min.js
+/static/js/pouchdb.min.js
/static/fonts/LatoLatin-Medium.woff2
/static/fonts//open-sans-v44-latin_latin-ext-regular.woff2
diff --git a/docs/serviceWorker.js.liquid b/docs/serviceWorker.js.liquid
index ec6d01e87..04d5aff52 100644
--- a/docs/serviceWorker.js.liquid
+++ b/docs/serviceWorker.js.liquid
@@ -35,7 +35,7 @@ var nonCriticalAssets =
'/static/js/code.min.js',
'/static/js/jquery.min.js',
'/static/js/bootstrap.min.js',
- 'https://cdn.jsdelivr.net/npm/pouchdb/dist/pouchdb.min.js',
+ '/static/js/pouchdb.min.js',
]
.concat(pages)
.filter(function (file) {
diff --git a/docs/static/js/pouchdb.min.js b/docs/static/js/pouchdb.min.js
new file mode 100644
index 000000000..46a93c62c
--- /dev/null
+++ b/docs/static/js/pouchdb.min.js
@@ -0,0 +1,8 @@
+// PouchDB 9.0.0
+//
+// (c) 2012-2024 Dale Harvey and the PouchDB team
+// PouchDB may be freely distributed under the Apache license, version 2.0.
+// For all details and documentation:
+// http://pouchdb.com
+!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).PouchDB=e()}}((function(){return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MO [...]
+//# sourceMappingURL=pouchdb.min.js.map
\ No newline at end of file
(pouchdb) 08/12: docs: add info on new releases and website deployment to the website readme
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
janl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
commit 83bbe387d8499a355a91852c7a3eb9234d00a489
Author: Alex Feyerke <al...@neighbourhood.ie>
AuthorDate: Tue Jun 2 11:43:25 2026 +0200
docs: add info on new releases and website deployment to the website readme
---
docs/WEBSITE_README.md | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/docs/WEBSITE_README.md b/docs/WEBSITE_README.md
index e0ad6b8be..031ef3ebd 100644
--- a/docs/WEBSITE_README.md
+++ b/docs/WEBSITE_README.md
@@ -34,6 +34,19 @@ By default, SW will only cache the pages you’ve seen plus `offline.html`, whic
To test the "Content updated, reload now?" toast that indicates that a new version of the site is available, run the dev server, make a change to the site (e.g. change some text somewhere), then navigate once or reload the page with a normal (not hard) reload. The update toast should show. When you click it, the page and the serviceworker cache will be updated.
+## PouchDB Version Updates
+
+If you’re releasing a new PouchDB version, the site also needs some updates:
+
+1. Replace `docs/static/js/pouchdb.min.js` with your newly built version of the same file (this is the PouchDB that is hosted by the website itself and available in the browser dev console).
+2. Update the `version` key in `docs/_data/site.js` to the new PouchDB version.
+
+Then deploy the webite.
+
+## Website Deployment
+
+Currently, the website is deployed manually by members of the team. In the near future, any website changes merged into `master` will be deployed automatically.
+
## Technology Choices
The PouchDB website is over a decade old and some parts of it are somewhat out of date by now, but they haven’t been updated for good reasons. The most significant legacy bit is Bootstrap 3.11 in the LESS version, which depends on JQuery for interactivity. There is currently zero benefit to, for example, migrating to SASS/SCSS here or trying to untangle JQuery from Bootstrap in order to use vanilla JS. A design update is on the horizon, and we’ll take that as an opportunity to remove Boo [...]