============================================================================================ 2019-12-27:Menuに通常の相対リンクが入れられるようにした。 ============================================================================================ doc-builder/readme(command) -------------------------------------------------------------------------------------------- --------------------------------------------------------------------- i1 @(key) (rtp) = foreign link (title) --------------------------------------------------------------------- $items1["(cate)/@(key)"] = array( "rtp"=>"(rtp)", "title"=>"(title)", "items"=>$items2, ); ============================================================================================ doc-builder/app/addon/include/CDocMaker.class.php -------------------------------------------------------------------------------------------- public function run() { case "i2": $key = array_shift($rec); if ( strpos($key,"@") === false ) { <----------------- $cate = $this->getCate(); if ( $pm->load( $cate, $key ) ) { $txt = $pm->renderPage(); $pm->save( $txt ); $this->printTitle( true, "Compile {$cate}/{$key}", $txt ); $pm->page = ""; } else { $this->printTitle( false, "Error: {$cate}/{$key}" ); $error++; } $total++; } <----------------- break; } ============================================================================================ doc-builder/f-des/..../mod/doc/CDoc.class.php -------------------------------------------------------------------------------------------- class CDoc extends CObject { public function findItemByRtp( &$items, $vrtp, &$key, &$item, //-- lebel1 foreach( $items as $key1 => $item1 ) { $b_hidden1 = ( isset($item1['hidden']) && $item1['hidden'] ) || <------------- ( strpos($key1,"@") !== false ); <------------- if ( isset($item1['rtp']) ) { if ( !$b_hidden1 ) { if ( !is_null($key) ) { $key_next = $key1; $item_next = $item1; if ( $b_hidden_key ) { $key_prev = null; $key_next = null; } return; ============================================================================================ doc-builder/f-des/iguide-j/.htaccess -------------------------------------------------------------------------------------------- #-- [BEGIN] routing path #-- [L]=Last, [QSA]=Query String Appended RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?_rt=1&_rtp=$1 [L,QSA] RewriteRule ^index\.php$ index.php?_rt=1&_rtp= [L,QSA] <-------- move it here #-- [END] routing path ============================================================================================ doc-builder/f-des/iguide-j/mod/doc/data/page/index.inc.php -------------------------------------------------------------------------------------------- ============================================================================================