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

Template Multiple versions #8

Open
bfoujols opened this issue Mar 27, 2024 · 1 comment
Open

Template Multiple versions #8

bfoujols opened this issue Mar 27, 2024 · 1 comment

Comments

@bfoujols
Copy link

Hi,

Is it possible to make a template with multiple versions ?

Regards

@dragon20002
Copy link

I hope it helps someone...


  • buildprofiles.xml
  1. versions-switcher don't call localhost. (127.0.0.1 is available.)
  2. The server serving help-versions.json may require CORS handling.
<?xml version="1.0" encoding="UTF-8"?>
<buildprofiles xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/build-profiles.xsd"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <variables>
        <web-root>http://localhost/</web-root>
        <header-logo>http://localhost/logo.png</header-logo>
        <!--
        versions-switcher
        1. `versions-switcher` don't call `localhost`. (`127.0.0.1` is available.)
        2. The server serving `help-versions.json` may require CORS handling.
        -->
        <versions-switcher>http://127.0.0.1/help-versions.json</versions-switcher>
    <variables>
</buildprofiles>
  • writerside.cfg
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ihp SYSTEM "https://resources.jetbrains.com/writerside/1.0/ihp.dtd">

<ihp version="2.0">
    <topics dir="topics"/>
    <images dir="images" web-path="images"/>
    <instance src="hi.tree" version="1.0.2"/> <!-- version : choose default version (help-versions.json) -->
</ihp>
  • help-versions.json
[
    {"version":"1.0.1","url":"/help/xxxx/1.0.1/","isCurrent":false},
    {"version":"1.0.2","url":"/help/xxxx/1.0.2/","isCurrent":true}
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants