You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/contributing/documentation.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,3 +119,32 @@ This runs a local web server at `http://[::1]:8080/` so you can see what the doc
119
119
### black
120
120
121
121
This will run `black` to lint your files and avoid any issues with our automated checks. You are unlikely to need this if you are simply updating the documentation source files in `content`.
122
+
123
+
## Notes for documentation maintainers
124
+
125
+
### Translations
126
+
127
+
Keep translations aligned by regularly updating from Crowdin:
128
+
129
+
1. Translations are updated in Crowdin
130
+
2. Crowdin pushes new translations to l10n_main as they are available
131
+
3. In your fork, `pull` both `main` and `l10n_main` so they are up to date in your local repository
132
+
4. Create a new fork from `main` (e.g. called `update_locales`) and check it out
133
+
5. merge `l10n_main`'s `locale` directory into your fork: `git checkout l10n_main -- locale`
134
+
6. make adjustments if necessary
135
+
7. push your local branch up to your remote and create a pull request
136
+
8. pull the PR into `main`
137
+
9. There is now a new reference file in en_US
138
+
10. Using the changes in the new reference file, translations are updated in Crowdin...
139
+
140
+
Locales for the language dropdown are listed in `i18n.py`. Generally we wait for a language to have 70% coverage in Crowdin before adding it to the list to avoid too much content remaining untranslated.
141
+
142
+
### Updating when a new version is released
143
+
144
+
When a new version of BookWyrm is released we need to create a new version of the docs:
145
+
146
+
1. Add a new branch with a name exactly matching the new version tag in BookWyrm. e.g. `v0.8.0`.
147
+
2. Add that branch name to the list of versions in `generate.py` in the `main` branch of the docs
148
+
3. Check out every other version in turn, and merge the updated generation file into it so they all have the new branch listed: `git checkout main generate.py`. Then commit this change, create a PR to merge this change into the version's branch in the docs, and merge it. This will ensure that all pages in all versions of the docs have every other version listed in the dropdown menu.
149
+
150
+
4. Merge the change in the `main` branch last - only merges into `main` trigger the GitHub action to deploy to the docs web server so if you do this first, the changes in other branches will have no effect.
<pclass="m-6">That page you are looking for is missing. This may be because it does not exist in the version of the documentation you were looking at.</p>
51
+
<ahref="/" class="button is-link">Go back to documentation</a>
52
+
</section>
53
+
</main>
54
+
55
+
<footerid="contentinfo" class="footer">
56
+
<divclass="container is-max-desktop">
57
+
<divclass="columns">
58
+
<divclass="column content">
59
+
<p>
60
+
<strong>BookWyrm</strong> is collaborative, anti-corporate software maintained by <ahref='https://www.mousereeve.com/'>Mouse Reeve</a>.
61
+
</p>
62
+
<p>
63
+
Support BookWyrm on <ahref='https://www.patreon.com/bookwyrm' target='_blank'>Patreon</a>.
64
+
</p>
65
+
</div>
66
+
<divclass="column">
67
+
<h3class="title is-6">Get Involved</h3>
68
+
<p>
69
+
<ahref="https://github.com/bookwyrm-social">BookWyrm on GitHub</a>
70
+
</p>
71
+
<p>
72
+
<ahref="https://github.com/bookwyrm-social/documentation/blob/main/content/using_bookwyrm/main-menu.md">Contribute to this page</a>
Copy file name to clipboardExpand all lines: templates/layout.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@
60
60
</div>
61
61
</nav>
62
62
{% if not current_version %}
63
-
<divclass="message is-danger">
63
+
<divclass="message is-warning">
64
64
<divclass="message-body has-text-centered">
65
65
{{ _("This is the documentation for the current development code. Choose a version from the menu to see documentation for released versions since") }} <strong>v0.7.5</strong>.
0 commit comments