Skip to content

Commit 3152b17

Browse files
authored
Merge pull request #4075 from rust-lang/revert-3942-search
Revert "add search"
2 parents ec921d4 + 1979a93 commit 3152b17

File tree

12 files changed

+2
-304
lines changed

12 files changed

+2
-304
lines changed

pelicanconf.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
else:
1515
THEME = 'themes/rusted'
1616

17-
THEME_STATIC_DIR = THEME + '/static'
1817
PLUGIN_PATHS = ["plugins"]
1918
PLUGINS = ['assets', 'neighbors']
2019

@@ -48,9 +47,7 @@
4847
"""
4948
}
5049

51-
SEARCH_HTML_SELECTOR = "article"
52-
53-
PLUGINS = ['webassets', 'search']
50+
PLUGINS = ['webassets']
5451

5552
MARKDOWN = {
5653
'extension_configs': {

publishing/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ ENV LC_ALL='en_US.UTF-8'
1212
RUN ln -s /usr/bin/python3.8 /usr/bin/python
1313
COPY requirements.txt .
1414
RUN pip3 install -r requirements.txt
15-
RUN curl https://files.stork-search.net/releases/v1.5.0/stork-ubuntu-20-04 -o stork \
16-
&& chmod +x stork \
17-
&& mv ./stork /usr/bin/stork
1815

1916
# sass/juice
2017
RUN apt-get install -y curl
@@ -29,7 +26,7 @@ COPY plugins plugins
2926
COPY themes themes
3027
COPY pelicanconf.py pelicanconf.py
3128

32-
COPY publishing/*.sh ./
29+
COPY publishing/*.sh .
3330
RUN chmod 777 *.sh
3431

3532
CMD ["pelican", "--delete-output-directory", "content"]

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ Markdown==3.3.7
66
markupsafe==2.0.1
77
pelican==4.7.1
88
pelican-webassets==2.0.0
9-
pelican-search==1.0.1

themes/rusted/static/css/_homepage.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@
1010
.subtext {
1111
margin-left: 50px;
1212
margin-right: 50px;
13-
text-align: center;
1413
}

themes/rusted/static/css/_layout.scss

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -58,28 +58,6 @@ body > footer {
5858
font-size: 20px;
5959
}
6060

61-
/**
62-
* Search
63-
*/
64-
.search {
65-
li.nav-header h2 {
66-
border-bottom: 1px solid $grey-colour-light;
67-
}
68-
69-
li {
70-
line-height: 1.8;
71-
}
72-
}
73-
74-
.stork-close-button {
75-
right: 15px;
76-
top: 149px;
77-
bottom: unset;
78-
}
79-
80-
.stork-progress {
81-
position: relative;
82-
}
8361

8462
/**
8563
* Page content

themes/rusted/static/css/stork-dark.css

Lines changed: 0 additions & 38 deletions
This file was deleted.

themes/rusted/static/css/stork.css

Lines changed: 0 additions & 212 deletions
This file was deleted.

themes/rusted/static/js/stork.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

themes/rusted/static/js/stork.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

themes/rusted/static/js/stork.wasm

-343 KB
Binary file not shown.

themes/rusted/templates/base.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags }} - Full Atom Feed" />
3333

3434
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" />
35-
<link rel="stylesheet" href="https://files.stork-search.net/basic.css" />
36-
<link rel="stylesheet" media="screen and (prefers-color-scheme: dark)" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/stork-dark.css">
3735
{% assets filters="libsass,cssmin", output="css/web-min.css", "css/main.scss" %}
3836

3937
<link rel="stylesheet" href="/{{ ASSET_URL }}" />

themes/rusted/templates/index.html

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,5 @@ <h1 class="pitch">Handpicked Rust updates, <br /> delivered to your inbox.</h1>
2727
</li>
2828
</ul>
2929
</div>
30-
<div class ="col-md-12">
31-
<ul class="list-unstyled search">
32-
<li class="nav-header disabled"><h2>Search</h2></li>
33-
<div>
34-
<p class="subtext">Generic or unspecific search terms may result in unhelpful results - there is currently no exact matching on phrases.</p>
35-
<input data-stork="sitesearch" class="form-control"/>
36-
<div data-stork="sitesearch-output"></div>
37-
38-
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/stork.js"></script>
39-
<script>
40-
stork.initialize("{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/stork.wasm")
41-
stork.downloadIndex("sitesearch", "{{ SITEURL }}/search-index.st")
42-
stork.attach("sitesearch")
43-
</script>
44-
</div>
45-
</ul>
46-
</div>
4730
</div>
4831
{% endblock content %}

0 commit comments

Comments
 (0)