Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
4d5ddf77
Commit
4d5ddf77
authored
Dec 12, 2013
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 720092 - USE_MDFILE_AS_MAINPAGE doesn't work if full path is specified.
parent
c5ae1978
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
markdown.cpp
src/markdown.cpp
+6
-2
No files found.
src/markdown.cpp
View file @
4d5ddf77
...
@@ -2292,9 +2292,13 @@ void MarkdownFileParser::parseInput(const char *fileName,
...
@@ -2292,9 +2292,13 @@ void MarkdownFileParser::parseInput(const char *fileName,
QCString
titleFn
=
QFileInfo
(
fileName
).
baseName
().
utf8
();
QCString
titleFn
=
QFileInfo
(
fileName
).
baseName
().
utf8
();
QCString
fn
=
QFileInfo
(
fileName
).
fileName
().
utf8
();
QCString
fn
=
QFileInfo
(
fileName
).
fileName
().
utf8
();
static
QCString
mdfileAsMainPage
=
Config_getString
(
"USE_MDFILE_AS_MAINPAGE"
);
static
QCString
mdfileAsMainPage
=
Config_getString
(
"USE_MDFILE_AS_MAINPAGE"
);
if
(
id
.
isEmpty
())
id
=
markdownFileNameToId
(
fileName
);
if
(
id
.
isEmpty
())
id
=
markdownFileNameToId
(
fileName
);
if
(
title
.
isEmpty
())
title
=
titleFn
;
if
(
title
.
isEmpty
())
title
=
titleFn
;
if
(
fn
==
mdfileAsMainPage
)
if
(
!
mdfileAsMainPage
.
isEmpty
()
&&
(
fn
==
mdfileAsMainPage
||
// name reference
QFileInfo
(
fileName
).
absFilePath
()
==
QFileInfo
(
mdfileAsMainPage
).
absFilePath
())
// file reference with path
)
{
{
docs
.
prepend
(
"@mainpage
\n
"
);
docs
.
prepend
(
"@mainpage
\n
"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment