Skip to content

Commit 4f5da00

Browse files
bump css version
1 parent d4178d5 commit 4f5da00

File tree

9 files changed

+13
-11
lines changed

9 files changed

+13
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bin
66
.classpath
77
/styles.css
88
/styles-v1.css
9+
/styles-v2.css
910
.project
1011
.vscode
1112
.DS_Store

integtest/spec/all_books_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def self.has_license(name, heading)
6464
has_license 'redux-thunk', 'The MIT License (MIT)'
6565
has_license 'symbol-observable', 'The MIT License (MIT)'
6666
end
67-
file_context 'html/static/styles-v1.css' do
67+
file_context 'html/static/styles-v2.css' do
6868
has_license 'Bootstrap', 'The MIT License (MIT)'
6969
has_license 'Inter', 'SIL OPEN FONT LICENSE'
7070
has_license 'Noto Sans Japanese', 'SIL OPEN FONT LICENSE'

integtest/spec/helper/dsl/convert_all.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def convert_all_before_context(relative_conf: false, target_branch: nil,
8989
expect(contents).not_to include('sourceMappingURL=')
9090
end
9191
end
92-
file_context 'html/static/styles-v1.css' do
92+
file_context 'html/static/styles-v2.css' do
9393
it 'is minified' do
9494
expect(contents).to include(<<~CSS.strip)
9595
*{font-family:Inter,sans-serif}

integtest/spec/single_book_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
end
3535
it 'has a link to the css' do
3636
expect(head).to include(<<~HTML)
37-
<link rel="stylesheet" type="text/css" href="/guide/static/styles-v1.css" />
37+
<link rel="stylesheet" type="text/css" href="/guide/static/styles-v2.css" />
3838
HTML
3939
end
4040
it 'has a link to the js' do
@@ -729,7 +729,7 @@ def self.convert_with_source_branch_before_context(branch)
729729
Net::HTTP.get_response(URI("#{static}/jquery.js"))
730730
end
731731
let(:css) do
732-
Net::HTTP.get_response(URI("#{static}/styles-v1.css"))
732+
Net::HTTP.get_response(URI("#{static}/styles-v2.css"))
733733
end
734734

735735
include_examples 'the root'

lib/ES/Util.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ sub start_web_resources_watcher {
695695
--public-url /guide/static/
696696
--hmr-port 8001
697697
-d /tmp/parcel/
698-
resources/web/docs_js/index-v1.js resources/web/styles-v1.pcss) );
698+
resources/web/docs_js/index-v1.js resources/web/styles-v2.pcss) );
699699
}
700700

701701
#===================================
@@ -722,7 +722,7 @@ sub build_web_resources {
722722

723723
my $parcel_out = dir('/tmp/parcel');
724724
my $compiled_js = $parcel_out->file('docs_js/index-v1.js');
725-
my $compiled_css = $parcel_out->file('styles-v1.css');
725+
my $compiled_css = $parcel_out->file('styles-v2.css');
726726

727727
unless ( -e $compiled_js && -e $compiled_css ) {
728728
# We write the compiled js and css to /tmp so we can use them on
@@ -735,15 +735,15 @@ sub build_web_resources {
735735
'--public-url', '/guide/static/',
736736
'--experimental-scope-hoisting', '--no-source-maps',
737737
'-d', $parcel_out,
738-
'resources/web/docs_js/index-v1.js', 'resources/web/styles-v1.pcss';
738+
'resources/web/docs_js/index-v1.js', 'resources/web/styles-v2.pcss';
739739
die "Parcel didn't make $compiled_js" unless -e $compiled_js;
740740
die "Parcel didn't make $compiled_css" unless -e $compiled_css;
741741
}
742742

743743
my $static_dir = $dest->subdir( 'raw' )->subdir( 'static' );
744744
$static_dir->mkpath;
745745
my $js = $static_dir->file( 'docs-v1.js' );
746-
my $css = $static_dir->file( 'styles-v1.css' );
746+
my $css = $static_dir->file( 'styles-v2.css' );
747747
my $js_licenses = file( 'resources/web/docs.js.licenses' );
748748
my $css_licenses = file( 'resources/web/styles.css.licenses' );
749749
$js->spew(

resources/web/__test__/air_gapped_template.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe("air_gapped_template.html", () => {
4444
* the built-docs repo.
4545
*/
4646
const compiledWebResources = [
47-
"/guide/static/styles-v1.css",
47+
"/guide/static/styles-v2.css",
4848
"/guide/static/docs-v1.js",
4949
"/guide/static/jquery.js"
5050
];

resources/web/air_gapped_template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<link rel="apple-touch-icon-precomposed" sizes="64x64" href="/favicon_64x64_16bit.png">
3131
<link rel="apple-touch-icon-precomposed" sizes="32x32" href="/favicon_32x32.png">
3232
<link rel="apple-touch-icon-precomposed" sizes="16x16" href="/favicon_16x16.png">
33-
<link rel="stylesheet" type="text/css" href="/guide/static/styles-v1.css" />
33+
<link rel="stylesheet" type="text/css" href="/guide/static/styles-v2.css" />
3434
</head>
3535

3636
<!--© 2015-2021 Elasticsearch B.V. Copying, publishing and/or distributing without written permission is strictly prohibited.-->

resources/web/styles-v1.pcss renamed to resources/web/styles-v2.pcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
@import './style/feedback.pcss';
1818
@import './style/heading.pcss';
1919
@import './style/img.pcss';
20+
@import './style/icons.pcss';
2021
@import './style/layout.pcss';
2122
@import './style/link.pcss';
2223
@import './style/list.pcss';

resources/web/template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
4343
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
4444
<![endif]-->
45-
<link rel="stylesheet" type="text/css" href="/guide/static/styles-v1.css" />
45+
<link rel="stylesheet" type="text/css" href="/guide/static/styles-v2.css" />
4646
</head>
4747

4848
<!--© 2015-2025 Elasticsearch B.V. -->

0 commit comments

Comments
 (0)