Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
Yii Framework 2 apidoc extension Change Log
===========================================

3.0.3 under development
3.0.4 under development
-----------------------

- no changes in this release.


3.0.3 under development
-----------------------

- Bug #281: Fix encoding in non English guides (arogachev)


3.0.2 February 16, 2022
-----------------------

Expand Down
3 changes: 0 additions & 3 deletions templates/bootstrap/GuideRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,11 @@ public function render($files, $targetDir)
{
$types = array_merge($this->apiContext->classes, $this->apiContext->interfaces, $this->apiContext->traits);

$extTypes = [];
foreach ($this->extensions as $k => $ext) {
$extType = $this->filterTypes($types, $ext);
if (empty($extType)) {
unset($this->extensions[$k]);
continue;
}
$extTypes[$ext] = $extType;
}

parent::render($files, $targetDir);
Expand Down
1 change: 1 addition & 0 deletions templates/html/GuideRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public function getGuideReferences()
*/
protected function fixMarkdownLinks($content)
{
$content = mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8');
$doc = new DOMDocument();
$doc->loadHTML($content);

Expand Down