Yii2 Offline Document

Hi,

I need to build Yii2 Api and Guide for Offline View.

i have tried command said in the page


 composer require --prefer-dist yiisoft/yii2-apidoc "*"

but I get Error

Have Tried it in Basic App but it gave me error of failing to publish assets. Anyone to guide me step by step?

TIA