Comments (1)
Oh, fun! I implemented pretty much exactly this in poxy without realizing you had this on the roadmap. Thought you might like a bit of an 'implementation experience' summary to serve as an example (or even just to see how it actually looks to help you make decisions re styling).
I went the magic macro route:
- Users put
POXY_IMPLEMENTATION_DETAIL()
in their code around features they want to hide - Doxygen replaces that with just
POXY_IMPLEMENTATION_DETAIL_IMPL
(i.e. as if#define POXY_IMPLEMENTATION_DETAIL(...) POXY_IMPLEMENTATION_DETAIL_IMPL
) - Poxy's HTML post-process replaces all instances
POXY_IMPLEMENTATION_DETAIL_IMPL
with a C-style block comment/* ... */
Which looks like this: example
It'd be relatively simple to extend that approach to allow for user-defined macros and such. You'd obviously have much more power to do fun stuff here as part of the html generation step, rather than my kludgy post-process.
figure out a way how to make this builtin (provide a header with such definitions so the user can just #include <mcss.h>?
My relatively dumb way of solving this problem is to drag this snippet from project to project:
#if !defined(__POXY__) && !defined(POXY_IMPLEMENTATION_DETAIL)
#define POXY_IMPLEMENTATION_DETAIL(...) __VA_ARGS__
#endif
Which doesn't require a separate header, of course, but is still invasive all the same. I guess the overhead is realtively low for any project with a single central preprocessor.h
, or core.h
or similar (which most will have), so either solution is going to be fine for most.
from m.css.
Related Issues (20)
- Does htmlify leave alone string between [ and ] HOT 3
- Feature Request: Doxygen: Support line number in code block output
- Feature Request: Doxygen: Support line numbers in code blocks
- ARGH! FontAwesome is not so Awesome. HOT 2
- Getting listed on Pelican-Themes? HOT 2
- Doxygen: `friend` keyword sneaks through as part of the type for `constexpr` operators
- Doxygen: m.css ignores `constexpr="yes"` attribute HOT 1
- warning: unknown <sectiondef> kind property and failure with AssertionError HOT 3
- RELATIVE_URLS not respected for css styling in local preview (WIndows) HOT 1
- Adding search, for an m.css newbie HOT 2
- Allow integration of custom search terms HOT 2
- PlantUML Support HOT 1
- m.css theme applied on main page but not on others HOT 1
- I've tried to build my site at github pages using m.css but seems github pages only build from Jekyll, not pellican HOT 4
- Assertion error when running HOT 9
- libgs not in expected path error HOT 6
- Python 3.12 Deprecation Warnings and Runtime script error HOT 1
- Cover image doesn't render on my Windows 10 HOT 2
- Unable to find {path to file}, skipping url replacement HOT 1
- Changes to my content files do not reflect on the rendered website HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from m.css.