Repository navigation
Feature Request: Authenticated GitLab/GitHub repository code embedding #1852
Cave-Johnson
started this conversation in
Anything about Poznote
Replies: 1 comment
|
Thanks for the idea! I went with something simpler than a live embed, and it will be in the next release. In the slash menu, under Code, there is a new "File from a Git repository" entry. Paste the address of a file from GitHub, GitLab, Forgejo or Gitea (Shift-click line numbers on the site first if you only want some lines), and Poznote inserts it as a regular code block with a small source line underneath. A refresh button on that line fetches the latest version when you want it. Private repositories work through your Git Sync token, as long as the file is on the same host. I didn't go for a dynamic embed with per-viewer permissions, because it would break public shares, search, offline mode and exports. Hope it works for you! 😊 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
📝 Your request
Add support for dynamically embedding source code, configuration files and snippets from external Git repositories directly within Poznote notes.
This would allow technical documentation to remain synchronised with the authoritative source code without manually copying and updating code blocks.
Proposed functionality
Allow users to embed repository content by specifying:
Requirements
Example use cases (from my use of Poznote)
Security considerations
Sharing a Poznote note should not inadvertently grant access to private repository content. Embedded content should only be rendered where the viewing user has the appropriate repository permissions.
This would allow Git to remain the authoritative source for code and configuration, with Poznote acting as the documentation and knowledge management layer.
All reactions