MkDocs build is slow

オープン
#1,397 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python

調査の方向性

まず、ローカルの MkDocs ビルドを再現し、multirepo プラグインがどのように設定されているかを確認します。動作を upstream issue jdoiro3/mkdocs-multirepo-plugin#129 および関連する issue #1317 と比較します。ehrQL セクションを削除したり、リポジトリ URL を変更したりせずに、ローカルでの編集によってより速いフィードバックが得られれば完了です。

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

説明

This doesn't matter too much for an actual build during deployment, but is inconvenient for local editing.

This is primarily due to the use of the multirepo plugin. It takes over 10 seconds on my computer, which is a little bit slow when you're editing and wanting quick feedback on appearance. It used to take something like 1-2 seconds.

It apparently wants to clone the project every time you edit files; upstream issue: jdoiro3/mkdocs-multirepo-plugin#129.

Other non-ideal workarounds for local editing:

  • remove the ehrQL section entirely when not working on it
  • edit the repository URL to point to a local clone

#1317 might help here.

主要言語
Python
スター
48
フォーク
10
平均マージ
1日 12時間
マージ済み PR(30日)
11

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

opensafely/documentation のほかの issue

opensafely/documentation の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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