manifest.json: set author and authorUrl

オープン 初心者向け
#24 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
80/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
electron, threejs, typescript
領域
frontend, release

調査の方向性

manifest.json と releasesRepo を src/shared/update.ts で確認してください。authorUrl がない場合は RELEASES_REPO 定数にフォールバックするはずです。author と authorUrl を設定し、次に tests/node.test.ts に、実際の manifest に対して releasesRepo が A21-devs/cortex を返すことを検証するテストを追加してください。そのテストと npm run check が通り、npm run desktop で src/ui/modals/AboutModal.ts の Docs と Changelog のリンクが引き続き動作すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

first issue

manifest.json has "author": "Cortex" and no authorUrl. Obsidian shows the author in its plugin list, and its plugin guidelines expect the author's name there, not the plugin's name. This is also the first step of #31.

Expected

"author": "A21-devs" (or the maintainer's name) and "authorUrl": "https://github.com/A21-devs". With that URL, releasesRepo() in src/shared/update.ts works out A21-devs/cortex from the manifest (one-part GitHub URL plus the plugin id) instead of falling back to the RELEASES_REPO constant.

Files to look at

  • manifest.json
  • src/shared/update.ts, releasesRepo
  • src/ui/modals/AboutModal.ts: the About dialog builds its links from the same fields
  • tests/commands.test.ts (update helpers) and tests/node.test.ts, which read the manifest
  • leave versions.json as it is

Acceptance criteria

  • author and authorUrl set in manifest.json
  • a test that releasesRepo returns A21-devs/cortex for the real manifest
  • About Cortex still shows working Docs and Changelog links (try it in npm run desktop)
  • npm run check passes

Setup

Read CONTRIBUTING.md and docs/DEVELOPMENT.md first. Node 20.11 or newer, and clone outside OneDrive, Dropbox or iCloud.

git clone https://github.com/A21-devs/cortex.git
cd cortex
npm ci
npm run check      # typecheck + module boundaries, unit tests, build (what CI runs)
npm run sample     # a made-up vault in your temp folder, so you never need your own notes
npm run desktop    # build and open Cortex Desktop to try your change

Taking it

Comment here if you want to take it, and I will assign it to you. Ask questions in this issue, I will answer here. One pull request, with "Closes #N" in the description.

主要言語
TypeScript
スター
2
フォーク
1
平均マージ
5分
マージ済み PR(30日)
19

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

A21-devs/cortex のほかの issue

A21-devs/cortex の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。