You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Reduce friction between code and documentation
no documentation PRs required for prebid.js changes
generated API documentation, reducing the chance of out-dated-api docs
Allow a versioned documentation to time travel to the correct version
Get rid of annotations in the documentation when to use what
Always up-to-date download page
separate versions for the different prebid projects along with a documented and implemented release process
prebid.js
prebid server (go & java)
prebid mobile
Reduce code review remarks by
required types for certain layouts
enum / string literal union types for allowed values
Replace tables where possible with a more responsive / mobile friendly layout
Requirements
Easy to contribute like now - open a PR and change a markdown file
However displaying those different versions is not natively supported yet: facebook/docusaurus#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)
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
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
Requirements
How to communicate bidder changes in a subversion
bidder changes something
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
orlayout: userid
prebid.github.io/dev-docs/bidders.md
Line 23 in 5d9377d
Search Input Fields
prebid.github.io/dev-docs/bidders.md
Lines 30 to 36 in 5d9377d
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.
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:
facebook/docusaurus#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)
facebook/docusaurus#4045 (reply in thread)
The text was updated successfully, but these errors were encountered: