miniblog.

← Back to all posts
37
I've been writing docs for different programming language operators (+, *, == and so on). Each one gets a separate web page. I've suddenly realised that / is much harder! docs/+ and docs/== is fine, but docs// just doesn't work as a URL in a static site. Any ideas?

7 Comments

@wilfredh does URL encoding / not work?
@wilfredh Docs/% also does not work well
@wilfredh /slash ? (pronunciation aliases are good(?))
Hex value for each character in ascii? docs/2B docs/3D3D docs/2F Not very readable, but if it’s meant to be navigated to from an index page, maybe that’s fine.
@arosien Yep, I think I'll probably end up doing that. The other tricky operator is %, and I'm not sure if I should call it /modulo or /percent (i.e. the maths operator or the symbol).
That'd be an option, but it's not terribly readable. I might just do docs/slash in this case as a compromise.