Venolio

Code in your pages

Documentation goes out of date when code changes. Venolio helps in two ways: the Code from repository block shows the current code from the repository instead of a copy, and pages that name a file, folder, route or symbol are checked against the code, so you notice when what they describe is gone.

Show code from a repository

  1. In a page, type / and choose Code from repository.
  2. Choose the Repository. The list has the GitHub repositories you can see: the ones you added and the ones shared with your projects.
  3. Enter the File path, for example src/main.py.
  4. Optionally enter a Branch or commit:
    • a branch name: the block follows that branch and always shows its latest version;
    • a full commit SHA: the block stays on that exact version;
    • empty: the default branch.
  5. Optionally enter Lines: one line such as 12 or a range such as 12-40 (at most 2,000 lines). Empty shows the whole file.
  6. Click Show code.

The block shows the code with line numbers and basic highlighting (Rust, TypeScript and JavaScript, Python, SQL, shell, YAML, TOML, JSON and CSS). Its header says whether it is Pinned to a commit or Follows a branch, and Open on GitHub opens the file there. Edit code reference changes the settings.

Who sees the code

The page stores only which repository, file, branch and lines to show, never the code. Every reader loads the file with their own access to the repository. People who cannot see the repository see This file is not available to you. You may need access to the repository. in place of the code. Binary files and files over 128 KB are not shown.

The block works with GitHub repositories only. GitLab, Gitea and Forgejo repositories are not in its list.

Pages that name missing code

Venolio reads the pages of every project a GitHub repository is shared with (the project’s pages and the records of its docs and tasks databases) and looks for code written as inline code:

You write Read as
src/billing/invoice.py, src/app.ts:42, docs/setup.md A file
web/components/ A folder
GET /api/invoices/{id}, /api/v1 A route the code serves
create_invoice, InvoiceList A symbol the code exports

When the code it names is deleted or moved on the default branch, the page’s info shows a warning, for example “This page names code that no longer exists”, with the missing items and their repository. The page also appears among the important pages to review on the space map, marked Code changed. Check whether the page is still accurate and update it.

  • Something counts as missing only when the branch had it and it is gone. Files that were never in the repository (build output, data, files that live only on a server) are never reported.
  • Nothing is reported until the whole branch has been read once, so a newly shared repository reports nothing at first.
  • Patterns such as *.py or lib/{a,b}.ts, commands and plain words are ignored.
  • References to repositories you cannot see are not shown to you.
  • Pages are checked again every 30 minutes, and whenever a new commit is read.

See The code graph for how Venolio reads the code.

About this part of Venolio: See how your team's knowledge connects

Checked against the app on . The same help is built into the Venolio apps and works offline. Something wrong or missing? Tell us.