Allowed to generate a static HTML version of the documentation

This commit is contained in:
William DURAND 2012-04-12 20:10:23 +02:00
parent 687f702791
commit d2285787a5
2 changed files with 8 additions and 2 deletions

View File

@ -121,6 +121,10 @@ A command is provided in order to dump the documentation in `json`, `markdown`,
The `--format` option allows to choose the format (default is: `markdown`). The `--format` option allows to choose the format (default is: `markdown`).
A use case could be to generate a static version of your documentation:
php app/console api:doc:dump --format=html > api.html
## Credits ## ## Credits ##

View File

@ -6,8 +6,10 @@
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" /> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
<title>API documentation</title> <title>API documentation</title>
<link href="http://fonts.googleapis.com/css?family=Droid+Sans:400,700" rel="stylesheet" type="text/css" /> <link href="http://fonts.googleapis.com/css?family=Droid+Sans:400,700" rel="stylesheet" type="text/css" />
<link href="/bundles/nelmioapi/css/screen.css" media="screen" rel="stylesheet" type="text/css" /> <style type="text/css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> <?php echo file_get_contents(__DIR__ . '/../public/css/screen.css'); ?>
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
</head> </head>
<body> <body>
<div id="header"> <div id="header">