@xpack/docusaurus-plugin-doxygen
Version:
A Docusaurus plugin to integrate Doxygen into a Docusaurus project.
34 lines (28 loc) • 1.03 kB
JavaScript
/*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software
* for any purpose is hereby granted, under the terms of the MIT license.
*
* If a copy of the license was not distributed with this file, it can
* be obtained from https://opensource.org/licenses/MIT.
*/
// ----------------------------------------------------------------------------
import styles from './styles.module.css';
import React from 'react';
// ----------------------------------------------------------------------------
export default function IncludesListItem({
filePath,
permalink,
isLocal,
children
}) {
return (
<>
<code>#include {isLocal === 'true' ? '"' : '<'}{permalink?.length > 0 ? (<a href={permalink}>{filePath}</a>) : filePath }{isLocal === 'true' ? '"' : '>'}</code>
<br />
</>
);
}
// ----------------------------------------------------------------------------