Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

About explanation for `sourcePath`

Open
#76 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
documentation

Research direction

Search the TypeScript API documentation for every sourcePath:string parameter, then compare those entries with the explanation in FileManager.generateMarkdownLink. Update the explanations so they consistently describe how sourcePath is used for relative links and clarify its correct plugin usage; done means all occurrences are covered and understandable.

Written by the indexing model from the issue text.

Description

The sourcePath:string parameter appears in several places in the API, but is sometimes not explained at all. Even when it is explained, the explanation varies from place to place and was not always easy to understand when I started writing plugins. Also, I have seen some plugins using sourcePath incorrectly.

So far, the clearest explanation that I could find is the one given in FileManager.generateMarkdownLink:

https://docs.obsidian.md/Reference/TypeScript+API/FileManager/generateMarkdownLink

where the link is stored in, used to compute relative links.

Hopefully this explanation will be adopted everywhere. Thank you!

Dominant language
JavaScript
Stars
530
Forks
174
Avg merge
3d 3h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from obsidianmd/obsidian-developer-docs

All issues in obsidianmd/obsidian-developer-docs

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.