wiki-sidebar #160

Merged
n merged 6 commits from wiki-sidebar into master 4 months ago
rwa commented 4 months ago
Collaborator
refers to Codeberg/Community#508
rwa added 2 commits 4 months ago
n reviewed 4 months ago
> knuts wiki
```
> Although it is possible to initially create the sidebar using the web ui, you need to use a local Git client to edit it afterwards.
n commented 4 months ago
Poster
Collaborator

I don't think this is accurate. You can edit it at https://codeberg.org/user/repo/wiki/_Sidebar.

I don't think this is accurate. You can edit it at `https://codeberg.org/user/repo/wiki/_Sidebar`.
rwa commented 4 months ago
Poster
Collaborator

Thanks for the hint, i wasn't aware of that.

It's kinda unintuitive cause you can't navigate to the file via the pages dropdown. You need to manually enter the correct URI in your browser.

Might be worth an issue upstream to add a small "edit sidebar" button somewhere.

Thanks for the hint, i wasn't aware of that. It's kinda unintuitive cause you can't navigate to the file via the pages dropdown. You need to manually enter the correct URI in your browser. Might be worth an issue upstream to add a small "edit sidebar" button somewhere.
fnetX commented 4 months ago
Poster
Collaborator
upstream: https://github.com/go-gitea/gitea/issues/16655
rwa commented 4 months ago
Poster
Collaborator

Thanks for the update. While i'm at it i'll add the footer thing too.

Thanks for the update. While i'm at it i'll add the footer thing too.
rwa marked this conversation as resolved
rwa added 1 commit 4 months ago
fnetX reviewed 4 months ago
Very basic example for a sidebar:
```markdown
- [Home](Home)
fnetX commented 4 months ago
Poster
Collaborator

Looking at the example @n mentioned, it's possible to use [[Home]] when the link should be called like the file? Would be cool to document as much as possible :-)

Looking at the example @n mentioned, it's possible to use `[[Home]]` when the link should be called like the file? Would be cool to document as much as possible :-)
rwa marked this conversation as resolved
rwa added 1 commit 4 months ago
rwa changed title from WIP: wiki-sidebar to wiki-sidebar 4 months ago
fnetX approved these changes 4 months ago
n requested changes 4 months ago
> In contrast to embedding external images, images in Git are only rendered after saving the wiki or markdown file changes.
## Adding a sidebar and a footer
The enhance to useability of your wiki you can add a custom sidebar and a footer that are shown on every page. The sidebar will be displayed to the right of the main content and the footer below.
n commented 4 months ago
Poster
Collaborator

The enhance to useability --> To enhance the usability

`The enhance to useability` --> `To enhance the usability`
fnetX commented 4 months ago
Poster
Collaborator

Not fixed yet. Full diff is not only "usablity", but also swapping "the" & "to"

Not fixed yet. Full diff is not only "usablity", but also swapping "the" & "to"
rwa marked this conversation as resolved
## Adding a sidebar and a footer
The enhance to useability of your wiki you can add a custom sidebar and a footer that are shown on every page. The sidebar will be displayed to the right of the main content and the footer below.
The enable the sidebar, just add a filed named `_Sidebar.md` to your wiki. For a footer the file must be named `_Footer.md`.
n commented 4 months ago
Poster
Collaborator

The enable --> To enable

`The enable` --> `To enable`
rwa marked this conversation as resolved
```
> To edit these special files in the Web UI you need to manually browse to the files, e.g. for our user *knut* and his *foobar* repo:
> `https://codeberg.org/knut/foobar/wiki/\_Sidebar`
n commented 4 months ago
Poster
Collaborator

You can drop the backslash before Sidebar here. Also automatic markdown links on the website aren't enabled.

You can drop the backslash before `Sidebar` here. Also automatic markdown links on the website aren't enabled.
rwa marked this conversation as resolved
rwa added 1 commit 4 months ago
rwa added 1 commit 4 months ago
fnetX approved these changes 4 months ago
n approved these changes 4 months ago
n merged commit edae9a08e8 into master 4 months ago
n referenced this issue from a commit 4 months ago
n deleted branch wiki-sidebar 4 months ago

Reviewers

fnetX approved these changes 4 months ago
n approved these changes 4 months ago
The pull request has been merged as edae9a08e8.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.