slice2html(1)
π slice2html β the Slice to HTML documentation tool π
okay bestie, listen. you know how slice2html(1) lives in the General Commands Manual section? yeah. that's the one. she's a compiler, she's a doc generator, she's that girl, and she's lowkey retired but we still stan. let's get into it π«Ά
β¨ NAME β¨
slice2html β the Slice to HTML documentation tool. that's it. that's the name. iconic.
π SYNOPSIS π
slice2html [options] [files]
so you give her some options, you give her some files, she does her thing. simple as. π
πΈ DESCRIPTION πΈ
okay so here's the tea: slice2html generates HTML documentation from Slice files. and get this β the macro __SLICE2HTML__ is defined during this compilation. not optional, not conditional, it's just there. periodt.
full documentation for slice2html is available online at:
https://doc.zeroc.com/ice/3.7/the-slice-language/generating-slice-
documentation
π real talk though, bestie: slice2html is deprecated. Doxygen is now the preferred way to generate Slice API reference. no cap. if you're starting something new, look here instead:
https://doc.zeroc.com/api/ice/3.7/slice/
like she still works, she's still serving, but she's giving legacy energy and we gotta be honest about it. π
π OPTIONS π
okay this is the part where we go through every single flag because we don't skip, we don't summarise, we are thorough in this house. let's go. π₯
-h,--helpβ displays the help message. when in doubt, ask for help. main character self-care.-v,--versionβ displays the compiler version. so you know exactly which era ofslice2htmlyou're dealing with.-DNAMEβ defines the preprocessor symbolNAME. boom, defined.-DNAME=DEFβ defines the preprocessor symbolNAMEwith the valueDEF. now she has a value, look at her go β¨-UNAMEβ undefines the preprocessor symbolNAME. it's giving "we don't know her". π-IDIRβ add the directoryDIRto the search path for#includedirectives. classic. you know this one, you've typed it a million times.-Eβ print the preprocessor output onstdout. raw, unfiltered, preprocessed.--output-dir DIRβ place the generated files into directoryDIR. where the magic lands, bestie.-d,--debugβ print debug information showing the operation of the Slice parser. she's telling you everything she's doing. oversharing? maybe. useful? yes.--hdr FILEβ prependFILEto each generated HTML file (except for_sindex.html). this lets you replace the HTML header and other preamble information with a custom version, so you can connect style sheets to the generated pages. the specified file must include the<body>tag (but need not end with a<body>tag).FILEis expected to contain the stringTITLEon a line by itself, starting in column one.slice2htmlreplaces theTITLEstring with the fully-scoped name of the Slice symbol that is documented on the corresponding page. okay so that's a whole thing but it's a good thing β custom headers, custom style, custom vibe. π--ftr FILEβ appendFILEto each generated HTML file (except for_sindex.html). this allows you to add, for example, a custom footer to each generated page.FILEmust end with a</body>tag. so you can sign your work, basically. cute.--indexhdr FILEβslice2htmlgenerates a file_sindex.htmlthat contains a table of contents of all Slice symbols that hyperlink to the corresponding page. this option allows you to replace the standard header with a custom header, for example, to attach a JavaScript. the specified file must include the<body>tag (but need not end with a<body>tag). the default value is the setting of--hdr(if any). so like, inherits from her sister option. we love a family dynamic. π«Ά--indexftr FILEβ appendFILEto the generatedsindex.htmlpage. this allows you to add, for example, a custom footer to the table of contents, or to invoke a JavaScript.FILEis must end with a</body>tag. (yes, that's exactly how the original says it, we're keeping it.) the default value is the setting of--ftr(if any). again β inheritance. slay. β¨--image-dir DIRβ with this option,slice2htmllooks in the specified directory for images to use for the generated navigation hyperlinks. (without this option, text links are used instead.) please see the generated HTML for the names of the various image files. (they can easily be found by looking forimgelements.) iykyk π--logo-url URLβ use the specified URL as a hyperlink for the company logo that is added to each page (if--image-diris specified). the company logo is expected to be in<image_dir>/logo.gif. so the logo has to live exactly there. no improvising. π--search ACTIONβ if this option is specified, the generated pages contain a search box that allows you to connect the generated pages to a search engine. on pressing the "Search" button, the specifiedACTIONis carried out. search bar era, we love to see it. π₯--index NUMβslice2htmlgenerates sub-indexes for various Slice symbols. this option controls how many entries must be present before a sub-index is generated. for example, ifNUMis set to3, a sub-index will be generated only if there are three or more symbols that appear in that index. the default settings is1, meaning that a sub-index is always generated. to disable sub-indexes entirely, setNUMto0. so:0= never,1= always, bigger numbers = she gets pickier. π--summary NUMβ if this option is set, summary sentences that exceedNUMcharacters generate a warning. keep it short or she will call you out. β
π SEE ALSO π
her whole friend group, honestly. go say hi:
slice2cpp(1), slice2cs(1), slice2java(1), slice2js(1), slice2matlab(1), slice2objc(1), slice2php(1), slice2py(1), slice2rb(1)
and that's the whole page, bestie π one last thing β this was slice2html(1) from the General Commands Manual section, and yeah the footer is literally just her own name again because she contains multitudes. go forth, generate some docs, and remember: deprecated but never forgotten. π¦πΈπ
π¦ where this page comes from
- arch rolling: zeroc-ice 3.7.10-3 Β· GPL-2.0-only AND LicenseRef-ICE
- debian bookworm: zeroc-ice-compilers 3.7.8-2.1+b1 Β· GPL-2.0+exceptions
- debian trixie: zeroc-ice-compilers 3.7.10-3.1 Β· GPL-2.0+exceptions
- ubuntu jammy: zeroc-ice-compilers 3.7.6-4ubuntu1 Β· GPL-2.0+exceptions
- ubuntu noble: zeroc-ice-compilers 3.7.10-2.1build1 Β· GPL-2.0+exceptions
- ubuntu questing: zeroc-ice-compilers 3.7.10-3.1
- ubuntu resolute: zeroc-ice-compilers 3.7.10-4build2 Β· GPL-2.0+exceptions
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms