为框架添加文档说明

xiaoxiao2021-02-28  67

if ( file_exists( dirname( __FILE__ ) . '/../README.md' ) ) { $section = array( 'icon' => 'el el-list-alt', 'title' => '文档说明', 'fields' => array( array( 'id' => '17', 'type' => 'raw', 'markdown' => true, 'content_path' => dirname( __FILE__ ) . '/../README.md', // 完整路径,不是相对的,请注意 //'content' => 'Raw content here', ), ), ); Redux::setSection( $opt_name, $section ); }以上内容添加入SECTIONS中间。
转载请注明原文地址: https://www.6miu.com/read-2600041.html

最新回复(0)