stable
Clone or download
Read-only
request #7311: Display README markdown file content in GitPHP tree views
While browsing a git repository, if there is a README file with a recognized markdown extension[1], then we display the content right below the tree. This works only on PHP5.3 and relies on Markdown Extra[2]. This should play well with git smart urls also. [1] http://superuser.com/questions/249436/file-extension-for-markdown-files.markdown .mdown .mkdn .md .mkd .mdwn .mdtxt .mdtext .text [2] https://en.wikipedia.org/wiki/Markdown_Extra Change-Id: I9f90dacb26c03d2e6d28519a62e60489e158054b
Modified Files
Name | ||||
---|---|---|---|---|
M | debian/control | +1 | −1 | Go to diff View file |
M | plugins/git/include/Git.class.php | +36 | −30 | Go to diff View file |
M | plugins/git/include/GitViews/ShowRepo.class.php | +1 | −0 | Go to diff View file |
M | plugins/git/include/GitViews/ShowRepo/Content.class.php | +54 | −2 | Go to diff View file |
M | plugins/git/include/Git_Exec.class.php | +28 | −0 | Go to diff View file |
A | plugins/git/include/Markdown/GitMarkdownFile.class.php | +68 | −0 | Go to diff View file |
A | plugins/git/include/Markdown/GitMarkdownFileContentInForm.php | +30 | −0 | Go to diff View file |
A | plugins/git/include/Markdown/ReadmeMarkdownPresenter.php | +34 | −0 | Go to diff View file |
M | plugins/git/include/autoload.php | +5 | −2 | Go to diff View file |
A | plugins/git/templates/readme_markdown.mustache | +9 | −0 | Go to diff View file |
A | plugins/git/tests/GitMarkdownFileTestPHP53.php | +52 | −0 | Go to diff View file |
M | plugins/git/tests/Git_ExecTest.php | +24 | −2 | Go to diff View file |
M | plugins/git/www/themes/default/css/style.less | +19 | −2 | Go to diff View file |
M | plugins/tests/www/tests_common.php | +1 | −3 | Go to diff View file |
R | src/common/autoload_zend.php | Go to diff View file | ||
M | src/etc/local.inc.dist | +3 | −0 | Go to diff View file |
M | src/www/include/pre.php | +7 | −6 | Go to diff View file |
M | tools/rpm/tuleap.rhel6.spec | +1 | −0 | Go to diff View file |
M | tools/rpm/tuleap.spec | +1 | −0 | Go to diff View file |