Skip to content

[pull] main from freeCodeCamp:main #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 123 commits into from
Apr 11, 2025
Merged
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
2f0ad7c
Add documentation and support for three.js
chaitanyarahalkar Dec 24, 2024
e08baef
Add logos
chaitanyarahalkar Dec 24, 2024
71729cf
Updated instructions for downloading the documentation
chaitanyarahalkar Dec 24, 2024
1a19735
add page to the styling
chaitanyarahalkar Dec 24, 2024
58d3d7d
add styling
chaitanyarahalkar Dec 24, 2024
15fcdc2
switched to the simple styling option
chaitanyarahalkar Dec 24, 2024
21a04f9
fix the clean_html file for optimizations
chaitanyarahalkar Dec 25, 2024
8d0efa7
update threejs doc version
chaitanyarahalkar Dec 25, 2024
b7393f4
update documentation for new folder location for json file
chaitanyarahalkar Dec 25, 2024
b218836
cleanup the code
chaitanyarahalkar Dec 25, 2024
8ec3a27
remove scss since using the simple style
chaitanyarahalkar Dec 25, 2024
35b7c73
update tmp folder to use the rails project temp folder
chaitanyarahalkar Dec 25, 2024
5fef976
Use fully qualified name
spuun Jan 17, 2025
e0fdbc2
Update Ruby Version in README
SgiobairOg Feb 1, 2025
5add0f9
[#1074] Make Language Specific Favicons Optional
SgiobairOg Feb 1, 2025
6bd2a0d
Update crystal docs to 1.15.1
spuun Feb 8, 2025
a672413
Update Go documentation (1.24.0)
simon04 Feb 12, 2025
1e61c78
Update Rust documentation (1.84.1)
simon04 Feb 12, 2025
726df58
Update jQuery UI documentation (1.14.1)
simon04 Feb 12, 2025
27ec5a0
Update Git documentation (2.48.1)
simon04 Feb 12, 2025
e993baf
Update VueUse documentation (12.5.0)
simon04 Feb 12, 2025
00649b9
Update Haskell documentation (9.12.1)
simon04 Feb 12, 2025
a2d9d7a
Update Flask documentation (3.1.1)
simon04 Feb 12, 2025
5a129d4
Update Werkzeug documentation (3.1.1)
simon04 Feb 12, 2025
2499e17
Update Express documentation (4.21.2)
simon04 Feb 12, 2025
479bd75
chore(deps): update dependency rack to v2.2.11
renovate[bot] Feb 12, 2025
50b24e6
Merge pull request #2431 from freeCodeCamp/renovate/rack-2.x-lockfile
renovate[bot] Feb 12, 2025
8e718e7
chore(deps): update ruby/setup-ruby action to v1.219.0
renovate[bot] Feb 12, 2025
9dc2989
Merge pull request #2432 from freeCodeCamp/renovate/github-actions
renovate[bot] Feb 12, 2025
d12f240
chore(deps): update ruby/setup-ruby action to v1.220.0
renovate[bot] Feb 15, 2025
ba993ec
Merge pull request #2434 from freeCodeCamp/renovate/github-actions
renovate[bot] Feb 15, 2025
07b131f
chore(deps): update dependency ruby to v3.4.2
renovate[bot] Feb 15, 2025
ea8f6bd
Merge pull request #2433 from freeCodeCamp/renovate/ruby-3.x
renovate[bot] Feb 15, 2025
549c19a
Typo
simon04 Feb 16, 2025
4ad6715
Add OpenLayers documentation (10.4.0)
simon04 Feb 16, 2025
a361d73
Update Vite documentation (6.1.0)
simon04 Feb 16, 2025
19613ef
openlayers: remove inherited entries
simon04 Feb 16, 2025
85039c6
chore(deps): update ruby/setup-ruby action to v1.221.0
renovate[bot] Feb 16, 2025
04a1877
Merge pull request #2435 from freeCodeCamp/renovate/github-actions
renovate[bot] Feb 17, 2025
2b63eba
chore(deps): update dependency nokogiri to v1.18.3
renovate[bot] Feb 18, 2025
4d98060
Merge pull request #2436 from freeCodeCamp/renovate/nokogiri-1.x-lock…
renovate[bot] Feb 19, 2025
ddb8ff3
chore(deps): update akhileshns/heroku-deploy action to v3.14.15
renovate[bot] Feb 19, 2025
bcf7dc2
Merge pull request #2437 from freeCodeCamp/renovate/github-actions
renovate[bot] Feb 19, 2025
d426b47
fix: open external links in default browser from macOS PWA…
cpmsmith Feb 21, 2025
5807a6f
Update Tensorflow and Tensorflow C++ (2.16)
ClasherKasten Feb 21, 2025
31ca6d4
Fix multiple version checks of scrapers.
ClasherKasten Feb 21, 2025
f71b8ef
Add Django 5.2
adamchainz Feb 21, 2025
94a161a
Merge pull request #2441 from ClasherKasten/fix/version-checks
simon04 Feb 23, 2025
e2336a1
Update PHPUnit documentation (12.0)
simon04 Feb 23, 2025
3eda8d2
Update Sass documentation (1.85.0)
simon04 Feb 23, 2025
d851473
Update Trio documentation (0.29.0)
simon04 Feb 23, 2025
dccec10
Merge pull request #2404 from spuun/improve-crystal-navigation
simon04 Feb 23, 2025
2545a6a
Merge pull request #2428 from spuun/crystal-1.15.1
simon04 Feb 23, 2025
03c4c5e
Merge pull request #2439 from cpmsmith/window-open-noopener
simon04 Feb 23, 2025
82a03cb
Update TensorFlow documentation (2.18.0)
simon04 Feb 23, 2025
34220e6
Merge pull request #2440 from ClasherKasten/update/tensorflow
simon04 Feb 23, 2025
ba294a1
Use navigator.clipboard.writeText
simon04 Feb 23, 2025
8f29e60
Use Object.entries
simon04 Feb 23, 2025
74aa661
Merge branch 'main' into add/threejs-docs
simon04 Feb 23, 2025
6dbe834
Update Three.js documentation (173)
simon04 Feb 23, 2025
1c07f17
Merge pull request #2392 from chaitanyarahalkar/add/threejs-docs
simon04 Feb 23, 2025
be5cecc
Merge pull request #2422 from SgiobairOg/1074-make-language-specific-…
simon04 Feb 23, 2025
bc7abc8
Merge pull request #2442 from adamchainz/django_5.2
simon04 Feb 23, 2025
568e7c7
Update esbuild documentation (0.25.0)
simon04 Feb 23, 2025
75ed540
Update Rust documentation (1.85.0)
simon04 Feb 23, 2025
1305b4a
Update TensorFlow documentation (2.16.1)
simon04 Feb 23, 2025
df4b3fd
Update dependency redcarpet to v3.6.1
renovate[bot] Feb 25, 2025
763b9eb
Merge pull request #2446 from freeCodeCamp/renovate/redcarpet-3.x-loc…
renovate[bot] Feb 26, 2025
ccb4e9c
Update docker/metadata-action digest to 902fa8e
renovate[bot] Feb 26, 2025
2c5b5bd
Merge pull request #2447 from freeCodeCamp/renovate/github-actions
renovate[bot] Feb 26, 2025
ff9ac9d
Update dependency rack to v2.2.12
renovate[bot] Mar 4, 2025
308552e
Merge pull request #2449 from freeCodeCamp/renovate/rack-2.x-lockfile
renovate[bot] Mar 4, 2025
2790f1d
Update ruby/setup-ruby action to v1.222.0
renovate[bot] Mar 5, 2025
1e7039d
Merge pull request #2451 from freeCodeCamp/renovate/github-actions
renovate[bot] Mar 6, 2025
fd4682c
Update Python documentation (3.13.2)
simon04 Mar 6, 2025
01bcf58
Update Backbone.js documentation (1.6.0)
simon04 Mar 10, 2025
ee145d7
Fix Docs.aliases
simon04 Mar 10, 2025
9ff5ff4
Update dependency rack to v2.2.13
renovate[bot] Mar 10, 2025
47a723c
Merge pull request #2452 from freeCodeCamp/renovate/rack-2.x-lockfile
renovate[bot] Mar 11, 2025
306322b
Update ruby/setup-ruby action to v1.224.0
renovate[bot] Mar 11, 2025
5e0e655
Merge pull request #2453 from freeCodeCamp/renovate/github-actions
renovate[bot] Mar 11, 2025
eaf31ce
Update dependency minitest to v5.25.5
renovate[bot] Mar 12, 2025
163b9c8
Merge pull request #2454 from freeCodeCamp/renovate/minitest-5.x-lock…
renovate[bot] Mar 13, 2025
4a09bca
Update ruby/setup-ruby action to v1.225.0
renovate[bot] Mar 13, 2025
0679be3
Merge pull request #2456 from freeCodeCamp/renovate/github-actions
renovate[bot] Mar 14, 2025
8a81696
Update docker/login-action digest to 74a5d14
renovate[bot] Mar 14, 2025
affb734
Merge pull request #2457 from freeCodeCamp/renovate/github-actions
renovate[bot] Mar 14, 2025
65440bf
Update dependency nokogiri to v1.18.4
renovate[bot] Mar 14, 2025
60f53ab
Merge pull request #2458 from freeCodeCamp/renovate/nokogiri-1.x-lock…
renovate[bot] Mar 14, 2025
9958c5d
Update ruby/setup-ruby action to v1.226.0
renovate[bot] Mar 15, 2025
6440ce7
Merge pull request #2459 from freeCodeCamp/renovate/github-actions
renovate[bot] Mar 15, 2025
e69933c
Update Vitest documentation (3.0.8)
simon04 Mar 16, 2025
bad8f3e
Update Vite documentation (6.2.2)
simon04 Mar 16, 2025
29f6e1c
Update Fish documentation (4.0.1)
simon04 Mar 16, 2025
3d5dba2
Update OCaml documentation (5.3)
simon04 Mar 16, 2025
4728005
Update Playwright documentation (1.51.0)
simon04 Mar 16, 2025
53c8da0
Update Prettier documentation (3.5.3)
simon04 Mar 16, 2025
13e3a2d
Update TypeScript documentation (5.8.2)
simon04 Mar 16, 2025
ab18909
Update TypeScript documentation (5.8.2)
simon04 Mar 16, 2025
1a03dc7
Update SQLite documentation (3.49.1)
simon04 Mar 16, 2025
63d5b99
Update ruby/setup-ruby action to v1.227.0
renovate[bot] Mar 18, 2025
f446f0e
Merge pull request #2460 from freeCodeCamp/renovate/github-actions
renovate[bot] Mar 18, 2025
1bdb9ec
Update dependency nokogiri to v1.18.5
renovate[bot] Mar 19, 2025
baad6e5
Merge pull request #2461 from freeCodeCamp/renovate/nokogiri-1.x-lock…
renovate[bot] Mar 19, 2025
e9a1fee
Update Qt documentation (6.8)
Mar 20, 2025
5f7841b
Update dependency nokogiri to v1.18.6
renovate[bot] Mar 24, 2025
543973a
Merge pull request #2464 from freeCodeCamp/renovate/nokogiri-1.x-lock…
renovate[bot] Mar 24, 2025
6d82042
Update ruby/setup-ruby action to v1.228.0
renovate[bot] Mar 26, 2025
7d1fe06
Merge pull request #2465 from freeCodeCamp/renovate/github-actions
renovate[bot] Mar 26, 2025
725fa51
Update ruby/setup-ruby action to v1.229.0
renovate[bot] Mar 27, 2025
970d3cd
Merge pull request #2467 from freeCodeCamp/renovate/github-actions
renovate[bot] Mar 27, 2025
09408ea
Update dependency pry-byebug to v3.11.0
renovate[bot] Mar 28, 2025
00cb995
Merge pull request #2468 from freeCodeCamp/renovate/pry-byebug-3.x-lo…
renovate[bot] Mar 28, 2025
c9b71bf
Update dependency nokogiri to v1.18.7
renovate[bot] Mar 31, 2025
fd24cc8
Merge pull request #2470 from freeCodeCamp/renovate/nokogiri-1.x-lock…
renovate[bot] Mar 31, 2025
375c2ba
Update dependency rr to v3.1.2
renovate[bot] Apr 7, 2025
e720287
Merge pull request #2472 from freeCodeCamp/renovate/rr-3.x-lockfile
renovate[bot] Apr 8, 2025
3fabf60
Update Qt documentation (6.8)
simon04 Apr 11, 2025
6c51865
Merge branch 'qt-6.8'
simon04 Apr 11, 2025
800d7b2
Update Crystal documentation (1.16.0)
simon04 Apr 11, 2025
f52fd64
Update Rust documentation (1.86.0)
simon04 Apr 11, 2025
e99df24
Update Zig documentation (0.14.0)
simon04 Apr 11, 2025
acb98cc
Update VueUse documentation (13.1.0)
simon04 Apr 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -13,13 +13,13 @@ jobs:
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Set up Ruby
uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0
uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake
- name: Deploy to Heroku
uses: akhileshns/heroku-deploy@581dd286c962b6972d427fcf8980f60755c15520 # v3.13.15
uses: akhileshns/heroku-deploy@e3eb99d45a8e2ec5dca08735e089607befa4bf28 # v3.14.15
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "devdocs"
4 changes: 2 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -29,15 +29,15 @@ jobs:
persist-credentials: false

- name: Log in to the Container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
2 changes: 1 addition & 1 deletion .github/workflows/schedule-doc-report.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Set up Ruby
uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0
uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Generate report
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Ruby
uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0
uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.4.1
3.4.2
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby 3.4.1
ruby 3.4.2
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.4.1
FROM ruby:3.4.2
ENV LANG=C.UTF-8
ENV ENABLE_SERVICE_WORKER=true

2 changes: 1 addition & 1 deletion Dockerfile-alpine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.4.1-alpine
FROM ruby:3.4.2-alpine

ENV LANG=C.UTF-8
ENV ENABLE_SERVICE_WORKER=true
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source 'https://rubygems.org'
ruby '3.4.1'
ruby '3.4.2'

gem 'activesupport', require: false
gem 'html-pipeline'
24 changes: 12 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ GEM
rouge (>= 1.0.0)
bigdecimal (3.1.8)
browser (5.3.1)
byebug (11.1.3)
byebug (12.0.0)
chunky_png (1.4.0)
coderay (1.1.3)
concurrent-ruby (1.3.4)
@@ -56,29 +56,29 @@ GEM
in_threads (1.6.0)
io-console (0.8.0)
logger (1.6.2)
method_source (1.0.0)
method_source (1.1.0)
mini_portile2 (2.8.8)
minitest (5.25.4)
minitest (5.25.5)
multi_json (1.15.0)
mustermann (3.0.3)
ruby2_keywords (~> 0.0.1)
newrelic_rpm (8.16.0)
nokogiri (1.18.2)
nokogiri (1.18.7)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
options (2.3.2)
progress (3.6.0)
progress_bar (1.3.4)
highline (>= 1.6)
options (~> 2.3.0)
pry (0.14.2)
pry (0.15.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.10.1)
byebug (~> 11.0)
pry (>= 0.13, < 0.15)
pry-byebug (3.11.0)
byebug (~> 12.0)
pry (>= 0.13, < 0.16)
racc (1.8.1)
rack (2.2.10)
rack (2.2.13)
rack-protection (3.2.0)
base64 (>= 0.1.0)
rack (~> 2.2, >= 2.2.4)
@@ -89,12 +89,12 @@ GEM
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
redcarpet (3.6.0)
redcarpet (3.6.1)
reline (0.6.0)
io-console (~> 0.5)
rexml (3.3.9)
rouge (1.11.1)
rr (3.1.1)
rr (3.1.2)
rss (0.3.1)
rexml
ruby2_keywords (0.0.5)
@@ -191,7 +191,7 @@ DEPENDENCIES
yajl-ruby

RUBY VERSION
ruby 3.4.1p0
ruby 3.4.2p28

BUNDLED WITH
2.4.6
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ docker run --name devdocs -d -p 9292:9292 devdocs

DevDocs is made of two pieces: a Ruby scraper that generates the documentation and metadata, and a JavaScript app powered by a small Sinatra app.

DevDocs requires Ruby 3.3.0 (defined in [`Gemfile`](./Gemfile)), libcurl, and a JavaScript runtime supported by [ExecJS](https://github.com/rails/execjs#readme) (included in OS X and Windows; [Node.js](https://nodejs.org/en/) on Linux). Once you have these installed, run the following commands:
DevDocs requires Ruby 3.4.1 (defined in [`Gemfile`](./Gemfile)), libcurl, and a JavaScript runtime supported by [ExecJS](https://github.com/rails/execjs#readme) (included in OS X and Windows; [Node.js](https://nodejs.org/en/) on Linux). Once you have these installed, run the following commands:

```sh
git clone https://github.com/freeCodeCamp/devdocs.git && cd devdocs
2 changes: 2 additions & 0 deletions assets/javascripts/app/settings.js
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ app.Settings = class Settings {
"autoInstall",
"spaceScroll",
"spaceTimeout",
"noDocSpecificIcon",
];

static INTERNAL_KEYS = ["count", "schema", "version", "news"];
@@ -38,6 +39,7 @@ app.Settings = class Settings {
theme: "auto",
spaceScroll: 1,
spaceTimeout: 0.5,
noDocSpecificIcon: false,
};

constructor() {
2 changes: 1 addition & 1 deletion assets/javascripts/lib/favicon.js
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ const withImage = function (url, action) {
};

this.setFaviconForDoc = function (doc) {
if (currentSlug === doc.slug) {
if (currentSlug === doc.slug || app.settings.get("noDocSpecificIcon")) {
return;
}

22 changes: 2 additions & 20 deletions assets/javascripts/lib/util.js
Original file line number Diff line number Diff line change
@@ -457,13 +457,13 @@ $.noop = function () {};

$.popup = function (value) {
try {
window.open(value.href || value, "_blank", "noopener");
} catch (error) {
const win = window.open();
if (win.opener) {
win.opener = null;
}
win.location = value.href || value;
} catch (error) {
window.open(value.href || value, "_blank");
}
};

@@ -526,21 +526,3 @@ $.highlight = function (el, options) {
el.classList.add(options.className);
setTimeout(() => el.classList.remove(options.className), options.delay);
};

$.copyToClipboard = function (string) {
let result;
const textarea = document.createElement("textarea");
textarea.style.position = "fixed";
textarea.style.opacity = 0;
textarea.value = string;
document.body.appendChild(textarea);
try {
textarea.select();
result = !!document.execCommand("copy");
} catch (error) {
result = false;
} finally {
document.body.removeChild(textarea);
}
return result;
};
8 changes: 8 additions & 0 deletions assets/javascripts/news.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
[
[
"2025-02-23",
"New documentation: <a href=\"/threejs/\">Three.js</a>"
],
[
"2025-02-16",
"New documentation: <a href=\"/openlayers/\">OpenLayers</a>"
],
[
"2024-11-23",
"New documentation: <a href=\"/duckdb/\">DuckDB</a>"
6 changes: 6 additions & 0 deletions assets/javascripts/templates/pages/settings_tmpl.js
Original file line number Diff line number Diff line change
@@ -66,6 +66,12 @@ app.templates.settingsPage = (settings) => `\
}>Enable tracking cookies
<small>With this checked, we enable Google Analytics and Gauges to collect anonymous traffic information.</small>
</label>
<label class="_settings-label _hide-on-mobile">
<input type="checkbox" form="settings" name="noDocSpecificIcon"${
settings.noDocSpecificIcon ? " checked" : ""
}>Disable Language-specific Doc Favicons
<small>With this checked, we will display the default DevDocs icon for all pages.</small>
</label>
</div>
</div>

32 changes: 12 additions & 20 deletions assets/javascripts/views/content/entry_page.js
Original file line number Diff line number Diff line change
@@ -96,16 +96,9 @@ app.views.EntryPage = class EntryPage extends app.View {
return content;
}

const links = (() => {
const result = [];
for (var link in this.entry.doc.links) {
var url = this.entry.doc.links[link];
result.push(
`<a href="${url}" class="_links-link">${EntryPage.LINKS[link]}</a>`,
);
}
return result;
})();
const links = Object.entries(this.entry.doc.links).map(([link, url]) => {
return `<a href="${url}" class="_links-link">${EntryPage.LINKS[link]}</a>`;
});

return `<p class="_links">${links.join("")}</p>${content}`;
}
@@ -203,8 +196,8 @@ app.views.EntryPage = class EntryPage extends app.View {
}

restore() {
let path;
if (this.cacheMap[(path = this.entry.filePath())]) {
const path = this.entry.filePath();
if (this.cacheMap[[path]]) {
this.render(this.cacheMap[path], true);
return true;
}
@@ -217,27 +210,26 @@ app.views.EntryPage = class EntryPage extends app.View {
this.load();
} else if (target.classList.contains("_pre-clip")) {
$.stopEvent(event);
target.classList.add(
$.copyToClipboard(target.parentNode.textContent)
? "_pre-clip-success"
: "_pre-clip-error",
navigator.clipboard.writeText(target.parentNode.textContent).then(
() => target.classList.add("_pre-clip-success"),
() => target.classList.add("_pre-clip-error"),
);
setTimeout(() => (target.className = "_pre-clip"), 2000);
}
}

onAltC() {
let link;
if (!(link = this.find("._attribution:last-child ._attribution-link"))) {
const link = this.find("._attribution:last-child ._attribution-link");
if (!link) {
return;
}
console.log(link.href + location.hash);
navigator.clipboard.writeText(link.href + location.hash);
}

onAltO() {
let link;
if (!(link = this.find("._attribution:last-child ._attribution-link"))) {
const link = this.find("._attribution:last-child ._attribution-link");
if (!link) {
return;
}
this.delay(() => $.popup(link.href + location.hash));
1 change: 1 addition & 0 deletions assets/javascripts/views/content/settings_page.js
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ app.views.SettingsPage = class SettingsPage extends app.View {
settings.analyticsConsent = app.settings.get("analyticsConsent");
settings.spaceScroll = app.settings.get("spaceScroll");
settings.spaceTimeout = app.settings.get("spaceTimeout");
settings.noDocSpecificIcon = app.settings.get("noDocSpecificIcon");
settings.autoSupported = app.settings.autoSupported;
for (var layout of app.Settings.LAYOUTS) {
settings[layout] = app.settings.hasLayout(layout);
1 change: 1 addition & 0 deletions assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
@@ -97,6 +97,7 @@
'pages/nushell',
'pages/octave',
'pages/openjdk',
'pages/openlayers',
'pages/perl',
'pages/phalcon',
'pages/phaser',
10 changes: 10 additions & 0 deletions assets/stylesheets/pages/_openlayers.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
._openlayers {
@extend %simple;
.nameContainer {
@extend %block-label;
> * { display: inline-block; margin: 0; }
> .tag-source { float: right; }
}
.card { @extend %box; margin-bottom: 1rem; padding: 1rem; }
.signature, .type-signature { @extend %code; }
}
15 changes: 15 additions & 0 deletions docs/file-scrapers.md
Original file line number Diff line number Diff line change
@@ -300,3 +300,18 @@ it to `docs/sqlite`
```sh
curl https://sqlite.org/2022/sqlite-doc-3400000.zip | bsdtar --extract --file - --directory=docs/sqlite/ --strip-components=1
```

## Three.js
Download the docs from https://github.com/mrdoob/three.js/tree/dev/files or run the following commands in your terminal:
Make sure to set the version per the release tag (e.g. r160). Note that the r prefix is already included, only the version number is needed.

```sh
curl https://codeload.github.com/mrdoob/three.js/tar.gz/refs/tags/r${VERSION} > threejs.tar.gz
tar -xzf threejs.tar.gz
mkdir -p docs/threejs~${VERSION}
mv three.js-r${VERSION}/list.json tmp/list.json
mv three.js-r${VERSION}/docs/* docs/threejs~${VERSION}/

rm -rf three.js-r${VERSION}/
rm threejs.tar.gz
```
12 changes: 6 additions & 6 deletions lib/docs.rb
Original file line number Diff line number Diff line change
@@ -112,31 +112,31 @@ def self.aliases
{
'angular' => 'ng',
'angular.js' => 'ng',
'backbone.js' => 'bb',
'c++' => 'cpp',
'backbone' => 'bb',
'cpp' => 'c++',
'coffeescript' => 'cs',
'crystal' => 'cr',
'elixir' => 'ex',
'javascript' => 'js',
'julia' => 'jl',
'jquery' => '$',
'knockout.js' => 'ko',
'knockout' => 'ko',
'kubernetes' => 'k8s',
'less' => 'ls',
'lodash' => '_',
'löve' => 'love',
'love' => 'löve',
'marionette' => 'mn',
'markdown' => 'md',
'matplotlib' => 'mpl',
'modernizr' => 'mdr',
'moment.js' => 'mt',
'moment' => 'mt',
'openjdk' => 'java',
'nginx' => 'ngx',
'numpy' => 'np',
'pandas' => 'pd',
'postgresql' => 'pg',
'python' => 'py',
'ruby.on.rails' => 'ror',
'rails' => 'ror',
'ruby' => 'rb',
'rust' => 'rs',
'sass' => 'scss',
Loading