Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yii2-apidoc error related to the new asset management #5101

Closed
stepanselyuk opened this issue Sep 18, 2014 · 5 comments
Closed

yii2-apidoc error related to the new asset management #5101

stepanselyuk opened this issue Sep 18, 2014 · 5 comments
Assignees
Milestone

Comments

@stepanselyuk
Copy link

Error occured within generation process:

Handling Yii2 guide, 1st iteration.
TargetDirectory already exists. Overwrite? (yes|no) [yes]:
Updating cross references and backlinks... done.
Searching files to process... done.
Rendering markdown files: 0% (0/85) ETA: n/a Error: The file or directory to be published does not exist: /Volumes/WebDev HD/dash-docset-yii2/yii2-apidoc/vendor/bower/bootstrap/dist
Handling phpDoc in Yii2 files.
TargetDirectory already exists. Overwrite? (yes|no) [yes]:
Searching files to process... done.
Loading apidoc data from cache... no data available.
Checking for updated files... done.
325 files to update.
Processing files... done.
Updating cross references and backlinks... done.
Rendering files: 0% (0/326) ETA: n/a Error: The file or directory to be published does not exist: /Volumes/WebDev HD/dash-docset-yii2/yii2-apidoc/vendor/bower/bootstrap/dist
Handling Yii2 guide, 2nd iteration (creating links)
TargetDirectory already exists. Overwrite? (yes|no) [yes]:
Loading apidoc data from cache... done.
Updating cross references and backlinks... done.
Searching files to process... done.
Rendering markdown files: 0% (0/85) ETA: n/a Error: The file or directory to be published does not exist: /Volumes/WebDev HD/dash-docset-yii2/yii2-apidoc/vendor/bower/bootstrap/dist

Rendering markdown files: 0% (0/85) ETA: n/a Error: The file or directory to be published does not exist: /Volumes/WebDev HD/dash-docset-yii2/yii2-apidoc/vendor/bower/bootstrap/dist

I see required directory is ./vendor/bower-asset/bootstrap/dist but not is ./vendor/bower/bootstrap/dist

@stepanselyuk stepanselyuk changed the title yii2-apidoc error related to new assets management yii2-apidoc error related to the new assets management Sep 18, 2014
@stepanselyuk stepanselyuk changed the title yii2-apidoc error related to the new assets management yii2-apidoc error related to the new asset management Sep 18, 2014
@cebe
Copy link
Member

cebe commented Sep 18, 2014

Have you added the lines as described in the UPDATE file to your composer.json and ran composer update?

@cebe cebe added this to the 2.0 RC milestone Sep 18, 2014
@cebe cebe self-assigned this Sep 18, 2014
@stepanselyuk
Copy link
Author

Thanks, I forgot about it.

I use script for generating api-doc:

echo "Downloading the Composer"
curl -sS https://getcomposer.org/installer | $phpexec

echo "Installing plugin fxp/composer-asset-plugin to Composer"
$phpexec composer.phar require "fxp/composer-asset-plugin:1.0.*@dev"

echo "Installing Yii2-apidoc"
$phpexec composer.phar install

after added $phpexec composer.phar require "fxp/composer-asset-plugin:1.0.*@dev"
seems to be working. Now is generation process running.

@stepanselyuk
Copy link
Author

Problem not fixed.
I've run all fresh install and got the same error:

echo "Downloading Yii2 guide"
git clone https://github.com/yiisoft/yii2

ln -s ./yii2/docs/guide ./yii2-guide

echo "Downloading Yii2-apidoc"
git clone https://github.com/yiisoft/yii2-apidoc

# go in
cd yii2-apidoc

echo "Downloading the Composer"
curl -sS https://getcomposer.org/installer | $phpexec

echo "Installing plugin fxp/composer-asset-plugin to Composer"
$phpexec composer.phar global require "fxp/composer-asset-plugin:1.0.*@dev"

echo "Installing Yii2-apidoc"
$phpexec composer.phar install
$phpexec composer.phar update

echo "Handling Yii2 guide, 1st iteration."
$phpexec ./apidoc guide "../yii2-guide" "../$docset"

echo "Handling phpDoc in Yii2 files."
$phpexec ./apidoc api ./vendor/yiisoft/yii2 "../$docset"

echo "Handling Yii2 guide, 2nd iteration (creating links)"
$phpexec ./apidoc guide "../yii2-guide" "../$docset"
Handling Yii2 guide, 1st iteration.
TargetDirectory already exists. Overwrite? (yes|no) [yes]:
Updating cross references and backlinks... done.
Searching files to process... done.
Rendering markdown files: 0% (0/85) ETA: n/a   Error: The file or directory to be published does not exist: /Volumes/WebDev HD/dash-docset-yii2/yii2-apidoc/vendor/bower/bootstrap/dist

@cebe
Copy link
Member

cebe commented Sep 18, 2014

Thanks for the detailed report, should be fixed by 45a748a.
Btw: no need to open a new issue if we are still discussing here. I will reopen when it is not fixed :)

@stepanselyuk
Copy link
Author

Seems to be done. Thanks! I maintain https://github.com/stepanselyuk/dash-docset-yii2 with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants