Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: broken output in Documentation Code Snippets #4919

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

AdarshRawat1
Copy link
Member

@AdarshRawat1 AdarshRawat1 commented Sep 18, 2024

Recent Update to PR

I'm pushing a temporary fix for the code output renders. I'll be reaching out to the Doxygen team about the issue, and hopefully, it will be resolved in the next release.
The issue arises when we include one README file within another; in this case, the code blocks are not processed correctly.

What was done

I made a copy of broken code snippets

  • The original copy is kept to correctly render code in GitHub Markdown preview. ( This is hidden from doxygen using \internal command. )
  • The copy snippet is enclosed in \code{.c} & \endcode commands of Doxygen. Because these commands are capable of rendering the snippets correctly even when included from external Markdown.

Changes

Minor fixes in documentation output.

Screenshots of Changes
Screenshots of Broken codes for multiple Markdowns
  • Broken Code snippets for merged Markdown files
    image

  • Fixed
    image

@AdarshRawat1 AdarshRawat1 changed the title Fix broken output text in Documentation Code Snippets Fix broken output in Documentation Code Snippets Sep 18, 2024
@AdarshRawat1 AdarshRawat1 changed the title Fix broken output in Documentation Code Snippets Fix: broken output in Documentation Code Snippets Sep 18, 2024
@fruffy fruffy added the documentation Topics related to compiler documentation. label Sep 18, 2024
Copy link
Contributor

github-actions bot commented Sep 18, 2024

githubloading A preview of this PR is available at: Preview Link
📂 View the source code here: View Source Code
🔧 Commit used for deployment: 333770d25a1e83f77ca22b07db973ee7c7aa163b

Note: Changes may take a few seconds to appear on GitHub Pages. Please refresh the page if you do not see the updates immediately.

@fruffy
Copy link
Collaborator

fruffy commented Sep 24, 2024

Is this ready for review?

@AdarshRawat1
Copy link
Member Author

Is this ready for review?

I was a bit occupied with university formalities, I'll complete this ASAP.

@AdarshRawat1 AdarshRawat1 marked this pull request as ready for review October 28, 2024 16:16
@AdarshRawat1 AdarshRawat1 marked this pull request as draft October 28, 2024 17:16
@AdarshRawat1 AdarshRawat1 marked this pull request as ready for review November 6, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Topics related to compiler documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants