Window ▸ Share on Web Server serves a read-only copy of the document to your local network — colleagues on the same Wi-Fi open it in any browser, live. Edits re-publish as you save; encrypted pages are excluded; the server stops when you stop it or quit.
You'll always know when it's on: a checkmark appears next to Share on Web Server in the Window menu, and a “Sharing” badge lights up in the toolbar. Choose the menu item again — or click the badge — to stop.
Sharing stops when you close the document's window, when you point that window at another wiki, when you put a password on the document, and when MojoPad quits — including when it quits to install an update, which is exactly when you are least likely to notice. If a document is one you share regularly, check Share this document whenever it is open in the Info palette and MojoPad starts sharing it again each time you open it. It still asks once, the first time that document is shared on a given Mac — because the setting travels inside the document and the permission should not. That question is about the permission, not about this switch: it is asked whether you shared by hand or the document shared itself, and answering it does not check or uncheck anything here.
Whatever you answer, you can change your mind. Settings ▸ Sharing lists every answer this Mac has given, including the ones that were no, and Forget hands the question back so the wiki asks again next time it needs to.
It is fenced deliberately. A document with a password never shares itself — the setting is not even offered on one, and adding a password later stops it regardless of what was checked before. Nothing about it is quieter than doing it by hand: the same “Sharing” badge lights in the toolbar, and MojoPad tells you the address it is serving at. Turning the setting off leaves it off.
Sharing serves a whole document, which is the right unit for a project and the wrong one for a single page you want a colleague to read. The way to do that is to keep a wiki whose whole contents are meant to be seen, and put a copy of the page in it.
Or share the one page directly. Share Only This Page on the Web serves the page you are looking at and nothing else from that wiki — see Sharing one page instead of the wiki below. A wiki of its own is still the simpler thing to reason about when you expect to share several pages over time.
Right-click a page and choose Copy to Another Document…. Pick an existing wiki or make a new one, choose where in it the page should land, and a copy arrives — with the fields it uses, so it keeps its shape rather than turning up as a page of nothing in particular. Then share that wiki as usual, and only the pages you deliberately put there are on the network.
Move to Another Document… is the same thing without leaving a copy behind. The original goes to Recently Deleted here, so a move you did not mean is not a loss. If that page’s file came from a folder MojoPad follows, the file stays where it is and the next read of that folder makes the page again — a move is not a delete, and nothing leaves your disk.
Links inside a moved page that pointed at other pages in the old wiki keep their names. In the new wiki those names may not lead anywhere — which is the honest outcome, since the alternative is dragging the rest of the wiki along behind one page.
Share Only This Page on the Web, in the command palette, serves the page you are looking at and nothing else from that wiki. It is not that the other pages are refused — they are not on that site at all.
Two things follow, and they are the point. Links to pages you did not share appear as plain words rather than as links, so a visitor cannot walk out of the page into the rest of your wiki. And anything the page embeds from a page you did not share is left out, because an embed pastes another page’s words in — sharing a page that embeds three others would otherwise publish all four under one address.
A locked page is never shared, and neither is one you have set to stay out of exports. Sharing is one document at a time, so this replaces a whole-wiki share of the same wiki rather than running beside it. Share on Web Server stops it, and Settings ▸ Sharing shows what is on the network.
If you would rather keep a wiki whose whole contents are meant to be seen, that still works and is simpler to reason about: right-click a page, Copy to Another Document…, and share that wiki as usual.
Settings ▸ Sharing lists whatever is being served at this moment, with the address each is at, and a Stop beside it. If nothing is, it says so.
Sharing itself is started from the document, not from Settings — open the wiki you want to share and choose Window ▸ Share on Web Server. That is because sharing belongs to one document and Settings belongs to the app: a switch here would have to guess which wiki you meant. What Settings can tell you is what is on the network, which is the thing worth knowing when you cannot remember whether you left something shared.
A wiki asks once, on each Mac, before it may be shared or reach anything outside itself — and a wiki somebody sends you asks separately, so an answer you gave about your own work is never an answer about theirs. Settings ▸ Sharing lists every answer this Mac holds: which wikis may be shared and which may not, which may run their own scripts, which may use the tools you have connected, which addresses their plugins may fetch from, which other sites a page saved into them may bring pictures from, which tools a model may choose among without asking each time, and which folders each one may read, write to or publish into.
Forget takes an answer back. It does not answer the other way — it removes the answer, so the next time that wiki needs the permission it asks you again. Forgetting a sharing answer also stops that wiki if it happens to be shared at the time, since it is being served by the permission you just withdrew.
Share as many as you like — the menu item belongs to the window you are in, so each document is shared and stopped on its own, and the checkmark tells you about that document rather than about the server. Each one gets its own web address built from its name, and the address you land on with nothing after it lists everything currently shared, so a visitor can be handed one link and find the rest. Every page also carries an Also shared list in its sidebar. Stop sharing the last one and the server shuts down by itself.
Settings ▸ Sharing. Left blank it uses 8080, and if something else on your Mac already has 8080 it quietly moves to the next free port. A port you type in is used exactly: if it's taken, sharing tells you so rather than serving somewhere you were never told about — which is the behavior you want from the setting you chose deliberately.
While a document is shared, MojoPad announces the server to the local network, so other devices can find it without anyone reading a URL aloud. On a Mac it appears under Bonjour in Safari's bookmarks; phones and tablets show it wherever they list nearby services. Handy in a meeting: start sharing, and everyone in the room can reach it from a list.
This is for quick sharing in a room. For publishing to the world, use Static Publishing.