Skip to content

Commit f1c3063

Browse files
committed
Move docs_v1 link to _config.
1 parent 4164466 commit f1c3063

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

_config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ brand_color: "#3492ff"
1212
description: "A JavaScript utility library delivering consistency, modularity, performance, & extras."
1313
incremental: true
1414

15+
links:
16+
docs_v1:
17+
"https://github.com/lodash/lodash/blob/1.3.1/doc/README.md"
18+
1519
sass:
1620
sass_dir:
1721
assets/css

_redirects

+3
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88
/docs/{{ major }} /docs/{{ release }}
99
/docs/{{ major }}.* /docs/{{ release }}
1010
{% endfor %}
11+
12+
/docs/1 {{ site.links.docs_v1 }}
13+
/docs/1.* {{ site.links.docs_v1 }}

assets/js/docs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@
363363
var value = event.target.value;
364364
if (value) {
365365
location.href = value == '1.3.1'
366-
? 'https://github.com/lodash/lodash/blob/1.3.1/doc/README.md'
366+
? '{{ site.links.docs_v1 }}'
367367
: '/docs/' + value;
368368
}
369369
});

0 commit comments

Comments
 (0)