Skip to content

Commit 0c4c952

Browse files
committed
Move announcements to a separate file
1 parent 2e695b5 commit 0c4c952

File tree

2 files changed

+52
-50
lines changed

2 files changed

+52
-50
lines changed

readthedocs-theme/templates/readthedocs/homepage.html

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -41,56 +41,7 @@ <h1 class="ui header massive">
4141
</section>
4242

4343
<!-- Announcements -->
44-
<section class="ui vertical segment" id="announcements">
45-
46-
<div class="ui container">
47-
48-
<div class="ui raised segment">
49-
<div class="ui grid stackable three column">
50-
51-
<div class="column">
52-
<div class="ui basic segment">
53-
<div><span class="ui label red">Announcement</span></div>
54-
<h4>Build errors with docutils 0.18</h4>
55-
<p>
56-
The latest Docutils and Sphinx updates have been the source of several problems on our builds. If you are experiencing problems related with this read the blog post. Well point you to several solutions.
57-
</p>
58-
<p>
59-
<a href="https://blog.readthedocs.com/build-errors-docutils-0-18/">Learn how to solve it</a>
60-
</p>
61-
</div>
62-
</div>
63-
<div class="column">
64-
<div class="ui basic segment">
65-
<div><span class="ui label primary">News</span></div>
66-
<h4>Our Sphinx theme version 1.0.0 is out</h4>
67-
<p>
68-
We have released a major version 1.0.0 of our Sphinx theme. This adds support for recent versions of Sphinx and docutils among other very cool things. Check out the blog post.
69-
</p>
70-
<p>
71-
<a href="https://blog.readthedocs.com/newsletter-september-2021/">Read more</a>
72-
</p>
73-
</div>
74-
</div>
75-
<div class="column">
76-
<div class="ui basic segment">
77-
<div><span class="ui label">Update</span></div>
78-
<h4>You are all up to date</h4>
79-
<p>
80-
We post important announcements, news and updates in this area. You can also check out our <a href="https://blog.readthedocs.com/">blog</a> or subscribe the newsletter to receive future updates first hand, plus receive our monthly report.
81-
</p>
82-
<p>
83-
<a href="#">Subscribe our newsletter</a>
84-
</p>
85-
</div>
86-
</div>
87-
88-
</div>
89-
</div>
90-
91-
</div>
92-
93-
</section>
44+
{% include 'readthedocs/includes/announcements.html' %}
9445

9546
<!-- Infographics -->
9647
<section class="ui vertical segment light padded" id="infographics">
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
<section class="ui vertical segment" id="announcements">
3+
4+
<div class="ui container">
5+
6+
<div class="ui raised segment">
7+
<div class="ui grid stackable three column">
8+
9+
<div class="column">
10+
<div class="ui basic segment">
11+
<div><span class="ui label red">Announcement</span></div>
12+
<h4>Build errors with docutils 0.18</h4>
13+
<p>
14+
The latest Docutils and Sphinx updates have been the source of several problems on our builds. If you are experiencing problems related with this read the blog post. Well point you to several solutions.
15+
</p>
16+
<p>
17+
<a href="https://blog.readthedocs.com/build-errors-docutils-0-18/">Learn how to solve it</a>
18+
</p>
19+
</div>
20+
</div>
21+
<div class="column">
22+
<div class="ui basic segment">
23+
<div><span class="ui label primary">News</span></div>
24+
<h4>Our Sphinx theme version 1.0.0 is out</h4>
25+
<p>
26+
We have released a major version 1.0.0 of our Sphinx theme. This adds support for recent versions of Sphinx and docutils among other very cool things. Check out the blog post.
27+
</p>
28+
<p>
29+
<a href="https://blog.readthedocs.com/newsletter-september-2021/">Read more</a>
30+
</p>
31+
</div>
32+
</div>
33+
<div class="column">
34+
<div class="ui basic segment">
35+
<div><span class="ui label">Update</span></div>
36+
<h4>You are all up to date</h4>
37+
<p>
38+
We post important announcements, news and updates in this area. You can also check out our <a href="https://blog.readthedocs.com/">blog</a> or subscribe the newsletter to receive future updates first hand, plus receive our monthly report.
39+
</p>
40+
<p>
41+
<a href="#">Subscribe our newsletter</a>
42+
</p>
43+
</div>
44+
</div>
45+
46+
</div>
47+
</div>
48+
49+
</div>
50+
51+
</section>

0 commit comments

Comments
 (0)