From what I understand, the docusuarus.config.js
file is responsible for translating specified information into HTML to construct your website. This translated information is then directed to the 'index.html' file.
However, I am encountering an issue where certain components, like my footer, defined in my config.js
file are not showing up in the index.html
file. For instance, in my docusaurus.config.js
file, I have set up a footer:
footer: {
copyright: `<b>Unless otherwise noted, all files contained herein are X Company, Inc., Proprietary and Confidential Information.</b>
<br/><br/>
Copyright © ${new Date().getFullYear()} Company, Version 1.00`,
This footer was functioning properly until I made changes to the homepage index.js
file. It appears that the index.js
file is conflicting with certain elements.
In the index.html
file, the displayed footer is:
footer class="footer"><div class="container container-fluid">
<div class="footer__bottom text--center">
<div class="footer__copyright">
Copyright © 2024 My Project, Inc. Built with Docusaurus.</div></div></div></footer></div>
It is worth noting that the text "Copyright © 2024 My Project, Inc. Built with Docusaurus." is not part of any code in my website files. This seems to be the default footer content.
For unknown reasons, Docusaurus is defaulting to this generic content and disregarding specific information specified in my docusaurus.config.js
.
I have not come across any resources that address this issue directly as: "My index.html
file is not recognizing or receiving details from my docusaurus.config.js
file."
I previously encountered this problem on a different website and thought it was a one-off issue. Starting a new site, I am facing the same challenge.
I am hesitant to delete the index.js
file, as it has been functioning correctly and has not caused issues in the past.
I have attempted the following troubleshooting steps:
- Updating Node versions
- Restarting the development server
- Creating a new Docusaurus site
- Rebuilding the site
- Comparing with older sites that are functioning correctly (no noticeable differences)