Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,20 @@ def _load_data(self, env, data_source, encoding):
elif datetime.date(2026, 9, 6) <= datetime.date.today() <= datetime.date(2026, 9, 9):
announcement_message = "Berlin 2026: Sep 6-8. <a href='/conf/berlin/2026/'>View the conference site</a>."

# The salary survey, which is open for submissions for part of the year.
# Update these when the next survey opens; the front page swaps between
# asking people to take it and pointing at the published results.
_salary_survey_closes = datetime.date(2027, 1, 31)
salary_survey = {
'year': 2026,
'url': 'https://salary-survey.writethedocs.org/',
'open': datetime.date.today() <= _salary_survey_closes,
'closes': f'{_salary_survey_closes.day} {_salary_survey_closes:%B %Y}',
}

html_context = {
'conf_py_root': os.path.dirname(os.path.abspath(__file__)),
'salary_survey': salary_survey,
'newsletter_subs': '10,000',
'slack_members': '22,500',
'website_visits': '20,000',
Expand Down
11 changes: 7 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ Get involved
<p>Over 700 talks and newsletter articles, on everything from API docs to getting hired.</p></li>
<li><strong><a href="/meetups/">Find a local meetup</a></strong>
<p>Local and virtual groups in over {{ meetup_cities }} cities, run by volunteers.</p></li>
<li><strong><a href="/surveys/">See the salary survey</a></strong>
<p>Anonymous pay data for documentation roles, published free every year.
The <a href="https://salary-survey.writethedocs.org/">2026 survey is open</a>.</p></li>
<li><strong><a href="/sponsorship/">Sponsor Write the Docs</a></strong>
{% if salary_survey.open %} <li><strong><a href="{{ salary_survey.url }}">Take the salary survey</a></strong>
<p>Anonymous pay data for documentation roles. The {{ salary_survey.year }} survey
closes {{ salary_survey.closes }}, and <a href="/surveys/">past results</a> are free to read.</p></li>
{% else %} <li><strong><a href="/surveys/">See the salary survey</a></strong>
<p>Anonymous pay data for documentation roles, published free every year.</p></li>
{% endif %}
<li><strong><a href="/sponsorship/">Become a sponsor</a></strong>
<p>Reach documentarians through our conferences, newsletter, Slack and website.</p></li>
</ul>

Expand Down
Loading