Evaluate alternative static site generators

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

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

@muuki88 がすでに取り組んでいます。

2023年5月4日 から。

評価

この issue はまだ評価されていません。

説明

With the upcoming prebid 8 release we again have the question on how to handle this in the documentation.
We have a prebid releases page in the references section, which gives a nice overview, but the documentation is lacking some info

  • is this module/feature/config only supported in my prebid version as well?
  • where can I find the specific documentation for my version

Currently, we solve this by adding meta data to bidders or specific configs/modules if there's a restriction on a prebid version.

🎯 Goals

There are a few goals we would like to achieve

  1. Allow a versioned documentation to time travel to the correct version
    1. Get rid of annotations in the documentation when to use what
    2. Always up-to-date download page
    3. separate versions for the different prebid projects along with a documented and implemented release process
      1. prebid.js
      2. prebid server (go & java)
      3. prebid mobile
  2. Reduce friction between code and documentation
    1. no documentation PRs required for prebid.js changes
    2. generated API documentation, reducing the chance of out-dated-api docs. Might be possible thanks to https://github.com/prebid/Prebid.js/pull/12879 in the future
  3. Reduce code review remarks by
  4. required types for certain layouts
  5. enum / string literal union types for allowed values
  6. Replace tables where possible with a more responsive / mobile friendly layout

✅ Requirements

  1. Easy to contribute like now - open a PR and change a markdown file
  2. Migration with as a little as possible directory structure changes. See #5630 for a list of important pages
/download.html
/dev-docs/bidders.html
/dev-docs/publisher-api-reference/setConfig.html
/
/prebid/prebidjs.html
/dev-docs/getting-started.html
/dev-docs/pbs-bidders.html
/dev-docs/modules/userId.html
/dev-docs/examples/basic-example.html
/prebid-server/overview/prebid-server-overview.html
/dev-docs/bidder-adaptor.html
/adops/step-by-step.html
/dev-docs/publisher-api-reference.html
/troubleshooting/troubleshooting-guide.html
/dev-docs/adunit-reference.html
/overview/intro.html
  1. Algolia support for site search
  2. SEO support
  3. bidder.csv data
  4. Migrate all existing customizations
  5. Google Analytics page view tracking

🔧 Customizations

There are a couple of customizations and extensions in the code base.

Generating tables and list from front matter meta data

We use jekyll meta data to generate listings of things.

Using the layout meta data to provide a list of certain module types, e.g. layout: bidder or layout: userid
https://github.com/prebid/prebid.github.io/blob/5d9377d92983ca176795f705847e7b5a67f9c4fc/dev-docs/bidders.md?plain=1#L23

Search Input Fields

https://github.com/prebid/prebid.github.io/blob/5d9377d92983ca176795f705847e7b5a67f9c4fc/dev-docs/bidders.md?plain=1#L30-L36

Download Page

This page enables users to download a prebid.js distribution with the selected modules

https://github.com/prebid/prebid.github.io/blob/master/assets/js/download.js

🦖 Docusaurus

Docusaurus overs most of the needed features. However the devil is in the detail.
A super rough prototype can be found here: https://github.com/prebid/prebid.github.io/tree/docusaurus

Multiple versioned folders

Versioning is possible: https://docusaurus.io/docs/versioning
Also with multiple content roots: https://docusaurus.io/docs/docs-multi-instance

However displaying those different versions is not natively supported yet:
https://github.com/facebook/docusaurus/issues/5415

Build dynamic page content

Docusaurus currently has no way to build dynamic page content based on all existing pages. See the full discussion here, which contains some options on how to solve this (for us at least)

https://github.com/facebook/docusaurus/discussions/4045#discussioncomment-11059746

❓ Questions

How to communicate bidder changes in a subversion?

If there's a none breaking change in a bidder, e.g. adding TCF support, how do we communicate this change?

Status quo: we don't. The latest documentation reflects the latest state of prebid

This the behaviour we could keep. When you refer to a major version, e.g. pbjs 8 , this will always mean "the latest version of prebid.js 8 available right now".

主要言語
HTML
スター
85
フォーク
1.4k
平均マージ
6日 14時間
マージ済み PR(30日)
95

環境構築

Codespaces で開く

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

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

prebid/prebid.github.io のほかの issue

prebid/prebid.github.io の issue をすべて見る

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

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