renderers/BaseRenderer.php
public function generateGuideUrl($file)
    {
        //skip parsing external url
        if ( (strpos($file, 'https://') !== false) || (strpos($file, 'http://') !== false) ) {
            return $file;
        }

        $hash = '';
        if (($pos = strpos($file, '#')) !== false) {
            $hash = substr($file, $pos);
            $file = substr($file, 0, $pos);
        }

        return rtrim($this->guideUrl, '/') . '/' . $this->guidePrefix . basename($file, '.md') . '.html' . $hash;
    }
public function generateGuideUrl($file)
    {
        //skip parsing external url
        if ( (strpos($file, 'https://') !== false) || (strpos($file, 'http://') !== false) ) {
            return $file;
        }

        $hash = '';
        if (($pos = strpos($file, '#')) !== false) {
            $hash = substr($file, $pos);
            $file = substr($file, 0, $pos);
        }

        return rtrim($this->guideUrl, '/') . '/' . $this->guidePrefix . basename($file, '.md') . '.html' . $hash;
    }
public function generateGuideUrl ( $ file ) { //skip parsing external url if ( ( strpos ( $ file , 'https://' ) !== false ) || ( strpos ( $ file , 'http://' ) !== false ) ) { return $ file ; } $ hash = '' ; if ( ( $ pos = strpos ( $ file , '#' ) ) !== false ) { $ hash = substr ( $ file , $ pos ) ; $ file = substr ( $ file , 0 , $ pos ) ; } return rtrim ( $ this -> guideUrl , '/' ) . '/' . $ this -> guidePrefix . basename ( $ file , '.md' ) . '.html' . $ hash ; }
Generate an url to a guide page
@param string $file
@return string
Generate an url to a guide page