How to use the Command of Slice2html

sanmao3sanmao3 Member Zheng XlOrganization: 杭州世纳科技&#Project: Health
I want to replace the header of html ,when using slice2html; but I can't use the Command of --hdr At the same time,Notes in Chinese garbled conversion after HTML。。。。


Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    The documentation for slice2html states:
    • --hdr FILE
      Prepend FILE to each generated HTML file (except for _sindex.html). This allows you to 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). FILE is expected to contain the string TITLE on a line by itself, starting in column one. slice2html replaces the TITLE string with the fully-scoped name of the Slice symbol that is documented on the corresponding page.
    Does your Header.html file include a TITLE line?

    Regards,
    Mark
  • sanmao3sanmao3 Member Zheng XlOrganization: 杭州世纳科技&#Project: Health
    I konw the documentation for slice2html ,But For the first time I use this command,so my Header.html has some problems; Here is the content:
    <head>
    <title>HealthContent</title>
    <meta charset="utf-8">
    </head>
    <body>

    Where is the problem?thanks!



  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    You need to have a line that only contains TITLE. For example:

    <head>
    TITLE
    <meta charset="utf-8">
    </head>
    <body>
  • sanmao3sanmao3 Member Zheng XlOrganization: 杭州世纳科技&#Project: Health
    It's working,Thanks so much!
Sign In or Register to comment.