Skip to content

feat: add module "On this page" - #625

Closed
sanua356 wants to merge 88 commits into
docmost:mainfrom
sanua356:table-of-contents
Closed

sanua356 wants to merge 88 commits into
docmost:mainfrom
sanua356:table-of-contents

Conversation

@sanua356

@sanua356 sanua356 commented Jan 11, 2025 •

Copy link
Copy Markdown
Contributor

Added a component that allows you to view and navigate between page headings. Mobile and desktop versions.

Desktop:
image

Desktop (fullwidth page editor):
image

Mobile:
image

Light theme:
image

@Scrub000

Copy link
Copy Markdown

Does this get exported?

@Scrub000

Copy link
Copy Markdown

It would be good to be able to rename the "on this page" wording

@sanua356

Copy link
Copy Markdown
Contributor Author

Does this get exported?

No

@sanua356

Copy link
Copy Markdown
Contributor Author

It would be good to be able to rename the "on this page" wording

I think it would be convenient, but at the moment I don't see the need

@Scrub000

Copy link
Copy Markdown

That's unfortunate about both points. A table of contents being exported is a useful feature but perhaps in a later version.

@CLAassistant

CLAassistant commented Mar 7, 2025 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
7 out of 8 committers have signed the CLA.

✅ fuscodev
✅ iagocavalcante
✅ h4rb4rd
✅ hoiekim
✅ sanua356
✅ l2dy
✅ GlitchDevX
❌ NomadRazor
You have signed the CLA already but the status is still pending? Let us recheck it.

@sanua356

sanua356 commented Mar 7, 2025 •

Copy link
Copy Markdown
Contributor Author

@Philipinho Hello. alexander.pankratov is also my user, but he is not registered on GitHub, so I can't sign the CLA for him.

@TopClans

Copy link
Copy Markdown

Would love to see this feature in Docmost, thanks for PR mr @sanua356! Hope it will be merged soon

Philipinho and others added 22 commits April 3, 2025 09:03
* Fix page title

* compare empty page title

* Properly handle null tree node name and icon
* * multi-file paste support
* allow media files (image/videos) to be attachments
* insert trailing node if file placeholder is at the end of the editor

* fix video align
* Set page history to 5 minutes interval

* * Configure default queue options

* sync

* * stripe seats sync (cloud)
* update lock file
* Add version endpoint

* version indicator

* refetch

* * Translate strings
* Handle error
* update lockfile

* fix color check

* telemetry

* complete

* Use interval
@sanua356
sanua356 force-pushed the table-of-contents branch from 9d49384 to f908c47 Compare April 3, 2025 06:14
@sanua356

sanua356 commented Apr 3, 2025

Copy link
Copy Markdown
Contributor Author

@Philipinho Hi. I rebased a branch and changed the author name of my local account in one commit that was not registered on github. Can you take a look at the branch? It's been sitting there for months.

@sanua356

sanua356 commented Apr 3, 2025

Copy link
Copy Markdown
Contributor Author

@Philipinho The rebase was unsuccessful. I will reopen the PR again.

@sanua356
sanua356 marked this pull request as draft April 3, 2025 06:29
@sanua356 sanua356 closed this Apr 3, 2025
vvzvlad pushed a commit to vvzvlad/gitmost that referenced this pull request Jul 15, 2026
The client's `test` script is `vitest run` — esbuild, which strips types
without checking them. The release path (`build`, and what the docker image
runs) is `tsc && vite build`. So a type error in any client file passed the PR
gate green and only surfaced at image build time: four TS errors in new test
files reached develop that way.

Add an explicit `Typecheck client` step (`pnpm --filter client typecheck` →
`tsc --noEmit`) placed after the workspace-package builds whose .d.ts it reads
and before the test run. Client tsconfig `include` is `src`, and the spec files
live under it, so test files are typechecked too — which is the point.

closes docmost#625

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.