Skip to content

Commit 57e1780

Browse files
fix(pouchdb-errors): avoid accessing Error.stack in restricted environments
1 parent c9e4731 commit 57e1780

File tree

82 files changed

+9495
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+9495
-6
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
**
2+
3+
!/package.json
4+
!/bin/build-site.js
5+
!/bin/install-jekyll.sh
6+
!/package-lock.json
7+
!/docs/Gemfile
8+
!/docs/Gemfile.lock

docs-dev.Dockerfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# maintain similarity to CI by using common base image:
2+
FROM ubuntu:20.04
3+
4+
RUN apt-get update && \
5+
apt-get --yes install \
6+
build-essential \
7+
curl \
8+
ruby-full \
9+
&& \
10+
apt-get clean && \
11+
rm -rf /var/lib/apt/lists/*
12+
13+
# TODO confirm ruby version is 2.7... if it matters
14+
RUN gem install bundler -v 2.1.4
15+
16+
ENV NODE_VERSION=22.12.0
17+
ENV NVM_DIR=/root/.nvm
18+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
19+
RUN . "$NVM_DIR/nvm.sh" && nvm install 22
20+
ENV PATH="$NVM_DIR/versions/node/v${NODE_VERSION}/bin/:${PATH}"
21+
22+
WORKDIR /pouchdb-docs
23+
24+
COPY ./docs/ ./docs-bundler
25+
RUN cd docs-bundler && bundle install
26+
27+
COPY package.json package-lock.json .
28+
RUN npm install --ci
29+
30+
COPY ./bin/ ./bin/
31+
32+
CMD ["npm", "run", "build-site"]

docs/Gemfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'jekyll', '3.9.1'
4+
5+
group :jekyll_plugins do
6+
gem 'jekyll-paginate'
7+
gem 'redcarpet'
8+
end
9+
10+
gem 'json'

docs/Gemfile.lock

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.8.6)
5+
public_suffix (>= 2.0.2, < 6.0)
6+
colorator (1.1.0)
7+
concurrent-ruby (1.2.3)
8+
em-websocket (0.5.3)
9+
eventmachine (>= 0.12.9)
10+
http_parser.rb (~> 0)
11+
eventmachine (1.2.7)
12+
ffi (1.16.3)
13+
forwardable-extended (2.6.0)
14+
http_parser.rb (0.8.0)
15+
i18n (0.9.5)
16+
concurrent-ruby (~> 1.0)
17+
jekyll (3.9.1)
18+
addressable (~> 2.4)
19+
colorator (~> 1.0)
20+
em-websocket (~> 0.5)
21+
i18n (~> 0.7)
22+
jekyll-sass-converter (~> 1.0)
23+
jekyll-watch (~> 2.0)
24+
kramdown (>= 1.17, < 3)
25+
liquid (~> 4.0)
26+
mercenary (~> 0.3.3)
27+
pathutil (~> 0.9)
28+
rouge (>= 1.7, < 4)
29+
safe_yaml (~> 1.0)
30+
jekyll-paginate (1.1.0)
31+
jekyll-sass-converter (1.5.2)
32+
sass (~> 3.4)
33+
jekyll-watch (2.2.1)
34+
listen (~> 3.0)
35+
json (2.3.1)
36+
kramdown (2.4.0)
37+
rexml
38+
liquid (4.0.4)
39+
listen (3.9.0)
40+
rb-fsevent (~> 0.10, >= 0.10.3)
41+
rb-inotify (~> 0.9, >= 0.9.10)
42+
mercenary (0.3.6)
43+
pathutil (0.16.2)
44+
forwardable-extended (~> 2.6)
45+
public_suffix (5.0.5)
46+
rb-fsevent (0.11.2)
47+
rb-inotify (0.10.1)
48+
ffi (~> 1.0)
49+
redcarpet (3.5.1)
50+
rexml (3.4.2)
51+
rouge (3.30.0)
52+
safe_yaml (1.0.5)
53+
sass (3.7.4)
54+
sass-listen (~> 4.0.0)
55+
sass-listen (4.0.0)
56+
rb-fsevent (~> 0.9, >= 0.9.4)
57+
rb-inotify (~> 0.9, >= 0.9.7)
58+
59+
PLATFORMS
60+
ruby
61+
62+
DEPENDENCIES
63+
jekyll (= 3.9.1)
64+
jekyll-paginate
65+
json
66+
redcarpet
67+
68+
BUNDLED WITH
69+
2.1.4

docs/_config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: PouchDB
2+
description: PouchDB, the JavaScript Database that Syncs!
3+
url: http://pouchdb.com
4+
markdown: redcarpet
5+
baseurl:
6+
version: 9.0.0
7+
paginate: 5
8+
paginate_path: "blog/page:num"
9+
github:
10+
repository_url: https://github.com/apache/pouchdb
11+
collections:
12+
guides:
13+
output: true
14+
exclude:
15+
- src

docs/_data/authors.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
- name: Nick Colley
2+
twitter: nickcolley
3+
github: nickcolley
4+
www: http://nickcolley.co.uk
5+
gravatar: d83613912d1a2511a784b99c703bdcf6
6+
7+
- name: Nolan Lawson
8+
twitter: nolanlawson
9+
github: nolanlawson
10+
www: http://nolanlawson.com
11+
gravatar: c436dec61b906e27c963518d0ef1d972
12+
13+
- name: Dale Harvey
14+
twitter: daleharvey
15+
github: daleharvey
16+
www: http://arandomurl.com
17+
gravatar: 030451d8cfc268d666bae9a7fe8d10ec
18+
19+
- name: Calvin Metcalf
20+
twitter: CWMma
21+
github: calvinmetcalf
22+
www: http://calvinmetcalf.com/
23+
gravatar: e8153037a068f1c32e546f82729a64a5
24+
25+
- name: Giovanni Ornaghi
26+
twitter: sphaso
27+
github: sphaso
28+
www: https://it.linkedin.com/in/giovanniornaghi
29+
gravatar: da853b1ad9ebe5e1c3ab5b340bb63b70
30+
31+
- name: Garren Smith
32+
twitter: garrensmith
33+
github: garrensmith
34+
www: http://www.redcometlabs.com
35+
gravatar: 15fb22e15587c7c36e0aeb5bf3579b07
36+
37+
- name: Will Holley
38+
twitter: wilhol
39+
github: willholley
40+
www: https://github.com/willholley/
41+
gravatar: 059d287498c864868b910fb0db7c469b
42+
43+
- name: Gareth Bowen
44+
twitter: garethjtbowen
45+
github: garethbowen
46+
www: https://bowenwebdesign.co.nz
47+
gravatar: eda4874d50a06c7a6b231ba3dd29c7c0
48+
49+
- name: Alba Herrerías
50+
twitter: alba_dev
51+
github: AlbaHerrerias
52+
www: https://www.albaherrerias.dev
53+
gravatar: da81e745b26ae8ca53fc77538599510f

0 commit comments

Comments
 (0)