Docs: Fix typos #525
No reviewers
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#525
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "solidsanek/akkoma:fix-docs-typo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I started by wanting to fix one typo, and then I noticed there were other typos, and then things kinda snowballed from there.
I guess it works fine as it is, but I still have questions, like:
I can't guarantee that I caught all typos and inconsistencies, but this should be an okay start
This seems like a lot of work! Ty for that!
I added some notes, but also there's one general thing; I see that you changed all the
!!! note
,!!! warning
... to use a capital letter. I wonder if this has been tested. Those are extentions and the docs only provide the examples with lowercase letters[1]. If it still works, then we could indeed change it here, although I would personaly err on the side of lowercase because that's how the docs of the extention show it.For your points, here's my 2 cents on them:
I'm also wondering if we should have some notes or style-guide. You did many fixes now, but if we don't write down how thing should be styled, then I'm afraid it will just become a mess again in the future.
[1] https://squidfunk.github.io/mkdocs-material/reference/admonitions/#supported-types
[2] https://akkoma.dev/AkkomaGang
@ -4,3 +4,3 @@
and that there's nothing quietly failing in the background.
To facilitate this, akkoma exposes prometheus metrics to be scraped.
To facilitate this, Akkoma exposes Prometheus metrics to be scrapped.
Isn't "scraped" (with one "p") correct here?
Oops, yeah, scraped is the right term, I mixed up the two without verifying them
@ -418,1 +415,3 @@
* `ignore_tld`: list TLDs (top-level domains) which will ignore for parse metadata. default is ["local", "localdomain", "lan"].
* `enabled`: if enabled, the instance will parse metadata from attached links to generate link previews.
* `ignore_hosts`: list of hosts which will be ignored by the metadata parser. For example, `["accounts.google.com", "xss.website"]`, defaults to `[]`.
* `ignore_tld`: list TLDs (top-level domains) which will ignore to parse metadata. Default is ["local", "localdomain", "lan"].
There's something off about this sentence 🤔. It's similar to the setting above[1], so should probably be more like "list of TLDs (top-level domains) which will be ignored by the metadata parser."
[1] https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/lib/pleroma/web/rich_media/helpers.ex#L32
@ -626,2 +623,3 @@
* `adapter`: one of the mail adapters listed in [Swoosh README](https://github.com/swoosh/swoosh#adapters), or `Swoosh.Adapters.Local` for in-memory mailbox.
* `api_key` / `password` and / or other adapter-specific settings, per the above documentation.
* `enabled`: Allows enable/disable send emails. Default: `false`.
* `enabled`: Allows to enable/disable send emails. Default: `false`.
This sentence seems weird too. Maybe "Enable sending emails from your instance." or something?
@ -44,7 +44,7 @@ The configuration of Akkoma (and Pleroma) has traditionally been managed with a
4. ⚠️ **THIS IS NOT REQUIRED** ⚠️
This should probably also use the
!!! Note
syntax.I also notice that it doesn't actually show the numbering of the steps properly[1]. That's because each step is considered a new list. Not sure what to do with that 🤔
[1] https://docs.akkoma.dev/stable/configuration/howto_database_config/
Not sure what to do about the step numbers here
The problem is there’s not enough indentation. Markdown requires following paragraphs to be indented by four spaces to continue a list item, but it currently only uses two spaces.
Here’s a commit on top of this PR fixing it and restoring the 4th list item which seems to have been accidentally deleted while introducing the
!!! note
block: https://akkoma.dev/Oneric/akkoma/commits/branch/solidsanek__fix-doc-typosAdditionally there’s a commit implementing the “NGINX → nginx” change I suggested below.
Feel free to pick these chnages up and squash them as you like, no need to retain any attribution for me; it was just a
sed
and a couple spaces anyway.@ -3,3 +3,2 @@
Richmedia are cached without the ttl but the rich media may have image which can expire, like aws signed url.
In such cases the old image url (expired) is returned from the media cache.
Richmedia are cached without the TTL, but the rich media may have image which can expire, like AWS-signed URL.
This is maybe more clear/correct: "Rich media is cached without the TTL, but the rich media may have an image which can expire, like AWS-signed URL."
@ -9,3 +9,3 @@
* You can create your own theme using the Pleroma FE by going to settings (gear on the top right) and choose the Theme tab. Here you have the options to create a personal theme.
* To download your theme, you can do Save preset
* If you want to upload a theme to customise it further, you can upload it using Load preset
* If you want to upload a theme to customize it further, you can upload it using Load preset
Why the z-spelling over s-spelling? I thought the z-spelling was purely a North America thing. (personally I always try to use the s-spelling.)
This change is a bit more opinionated I guess, I noticed that most of the doc wasn't written in British English, except for a couple of exception like "favourite" among a few others, at least from the ones I've spotted. I tend to adapt the spelling depending on which one the docs use primarily. If we consider that British English is the one to prefer, I'll revert these changes and see the spellings I can adapt
I didn't realise the non-British was more prevalent. It indeed makes sense to use the non-British form then. I am opinionated about it, but I'm also just one person, so there's that :p
Edit: I want to mark this as resolved, but I don't see where :/ Maybe gitea doesn't allow that? Anyhow, just to be clear, this (and other similar remarks on British vs American) can be considered resolved for me. The way it was done is correct, no changes needed.
@ -1,10 +1,10 @@
# Configuring Ejabberd (XMPP Server) to use Akkoma for authentication
# Configuring ejabberd (XMPP Server) to use Akkoma for authentication
Here we go to lowercase for the name of a software, I'm wondering what the reasoning is. I see on their site that they also write it with lowercase[1], so I assume that's the reason why we also lowercase it here?
[1] https://www.ejabberd.im/
Yep. For most software names I've modified, I looked up how the official websites write them, and ejabberd was always written all lowercased, even if it was written at the start of a phrase.
@ -13,3 +13,3 @@
```
**WARNING:** Onion instances not using a Tor version supporting V3 addresses will not be able to federate with you.
**WARNING:** Onion instances not using a Tor version supporting V3 addresses will not be able to federate with you.
Maybe also use the
!!! Warning
syntaxI'll go ahead and change most warnings/notes to
!!!
, when applicable@ -2,3 +2,3 @@
Varnish is a layer that sits between your web server and your backend application -
it does something similar to nginx caching, but tends to be optimised for speed over
it does something similar to NGINX caching, but tends to be optimized for speed over
s- vs z-spelling
@ -125,3 +125,3 @@
## Elasticsearch
**Note: This requires at least ElasticSearch 7**
**Note: This requires at least Elasticsearch 7**
Should probably use
!!! Note
syntax@ -153,7 +153,7 @@ Backwards-compatibility for admin API endpoints without version prefixes (`/api/
Note: Available `:permission_group` is currently moderator and admin. 404 is returned when the permission group doesn’t exist.
Can use
!!! Note
syntaxt@ -9,3 +9,3 @@
### Required packages
* `postgresql`
* `PostgreSQL`
I wonder how much sense it makes to capitalise package names here. Backticks generally mean code. So I think it should either be the package name like how you'd use it in a command (
pacman -S postgresql
), or not be between backticks. For packages I think it make sense to use backticks and the names like how you'd use in commands.Same for other places.
I believe some of the elements were already capitalised in some ways, which, with the addition of commands below said lists, made me think that it wouldn't be an issue. Now that I look back at these lists, since we're listing packages and not software names, I agree with you
@ -29,3 +29,2 @@
For more customised installations, refer to [Frontend Management](../../configuration/frontend_management)
For more customized installations, refer to [Frontend Management](../../configuration/frontend_management)
s- vs z-syntax
@ -113,2 +112,3 @@
OTP releases have different service files than from-source installs, so they need to be copied over again.
**Warning:** The service files assume akkoma user's home directory is `/opt/akkoma`, please make sure all paths fit your installation.
**Warning:** The service files assume Akkoma user's home directory is `/opt/akkoma`, please make sure all paths fit your installation.
Could probably use
!!! Warning
syntax@ -40,1 +38,3 @@
:openfiles-max=4096
:datasize-max=1536M:\
:datasize-cur=1536M:\
:openfiles-max=4096
I see a lot has changed from two indents to one. I have never used *bsd myself. Are we sure that two indents isn't just the typical *bsd way of doing it?
Ah, I apologize for that one, I accidentally changed the formatting from the tabs it had to spaces. 😅
According to the login.conf files I found, it seems that you're right, I'll revert this
@ -139,3 +139,3 @@
#### relayd
relayd will be used as the reverse proxy sitting in front of akkoma.
relayd will be used as the reverse proxy sitting in front of Akkoma.
Relayd (capital letter because start of sentence)
@ -14,2 +11,3 @@
Important: keep in mind that you must build your OTP release for the specific RedHat distribution you wish to use it on. A build on Fedora will only be compatible with a specific Fedora release version.
In order to compile a RedHat-compatible OTP release, you will need to run a Red Hat Linux distribution. This guide will assume you run Fedora 36, though it should also work on older Fedora releases and other Red Hat distributions. It also assumes that you have administrative rights and sufficient knowledge on how to perform common CLI tasks in Linux. If you want to run this guide with root, ignore the `sudo` at the beginning of the lines.
Important: keep in mind that you must build your OTP release for the specific Red Hat distribution you wish to use it on. A build on Fedora will only be compatible with a specific Fedora release version.
Can probably use
!!! Important
syntaxt.I admit there are quite a bit of elements that I took the liberty of modifying, thinking that it'd fit better. This includes the capitalized letters on
!!! note
elements, as I was not aware of the tool used to generate these docs. As you mentioned, it's probably safer to revert these changes and keep them lowercased, since the docs write them like so. I'll keep it in mind for any other change.As for the other points:
As for the styling guide, I'm not sure how and what would be in it. I feel that it's probably not a bad idea to encourage the use of the elements Mkdocs has, at the very least.
(also thanks for the thoroughness of the feedback, I was just thinking of submitting this as a starter, but there's a lot more that can be done in this MR)
Docs: Fix typosto WIP: Docs: Fix typosWell, to be clear; That's how I generally would do it, but I also don't have strong opinions on it either. Feel free to do what you think is best here. I think the important thing is mostly consistency.
I'm thinking use of the Mkdocs elements, use of American spelling, how to capitalise software names, bullet and sub-bullet points, try to avoid too technical descriptions... Basically everything that came up here. But all of that is really a separate thing, so probably outside the scope of this MR. It was more an idea that came to me. Something to maybe think about, rather than something that needs to be done now.
Generally I think it's good practice to keep MR's small. It's easier to review, and it allows to get improvements in faster. You already did a lot of good work here, it would be nice if this could already be part of the docs. Extra changes can always be done in follow-up MR's imo.
Good point. I might just stop here, and potentially follow-up another time
WIP: Docs: Fix typosto Docs: Fix typosheck this is a lot, most of it standardisation which is very appreicated
some tiny little grammatical things but apart from these i couldn't spot anything obvious to comment on
@ -37,2 +36,3 @@
* `public`: Allows unauthenticated access to public resources on your instance. This is essentially used as the default value for `:restrict_unauthenticated`.
See `restrict_unauthenticated` for more details.
* `quarantined_instances`: *DEPRECATED* ActivityPub instances where activities will not be sent. They can still reach there via other means, we just won't send them.
* `quarantined_instances`: *DEPRECATED* ActivityPub instances where activities will not be sent. They can still reach there via other means; we just won't send them.
should probably be
reach them
@ -82,3 +81,2 @@
* `subject`: A subject of welcome email.
* `html`: A html that will be send to a newly registered users as a email.
* `text`: A text that will be send to a newly registered users as a email.
* `html`: A HTML that will be sent to a newly registered users as an email.
this should probably have the leading
A
stripped@ -362,3 +361,3 @@
* `invalidation`: options for remove media from cache after delete object:
* `enabled`: Enables purge cache
* `provider`: Which one of the [purge cache strategy](#purge-cache-strategy) to use.
* `provider`: Which one of the [purge cache strategy](#purge-cache-strategy) to use.
should probably be pluralised to strategies
@ -377,3 +376,2 @@
This strategy allow perform external shell script to purge cache.
Urls of attachments are passed to the script as arguments.
This strategy allows to perform external shell script to purge cache.
allows performing an
oh and it looks like you might have to rebase, apologies
hope the diff isn't awful
Should be good now, I think. At least as a first attempt to format and fix all this
@ -41,2 +41,2 @@
4. Remove the files and folders you created during installation (see installation guide). This includes the akkoma, nginx and systemd files and folders.
5. Reload nginx now that the configuration is removed `systemctl reload nginx`
4. Remove the files and folders you created during installation (see installation guide). This includes the Akkoma, NGINX and systemd files and folders.
5. Reload NGINX now that the configuration is removed `systemctl reload nginx`
(Also applies to all other nginx changes):
While nginx’ logo is styled after uppercase
N
andG
letters, in textual form the software afaict consistently refers to itself as all-lowercase “nginx” even at the start of a sentence, see e.g. their docs from the repo or https://nginx.org/en/The company (nginx.com) on the other hand is referred to as “Nginx, Inc.” on nginx.org, but appears to have referred to itself as all-capitla NGINX since early on while initially keeping to use lowercase nginx for the actual software. Today, the company appears to use all-capaital NGINX for both itself and indeed also the software.
This makes this somewhat ambiguous, but personally I am inclined to follow what’s used by the software itself and updating the odd occurences of
Nginx
tonginx
instead of switching everything over toNGINX
.EDIT: a commit implementing this and another thing is linked above
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.