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

Templating documentation and guides to use a specific chain #169

Open
aaroncox opened this issue Sep 1, 2023 · 2 comments
Open

Templating documentation and guides to use a specific chain #169

aaroncox opened this issue Sep 1, 2023 · 2 comments
Assignees

Comments

@aaroncox
Copy link
Member

aaroncox commented Sep 1, 2023

The basic of the idea is this:

  • We'd have a dropdown somewhere in the site where you could "Select a blockchain"
  • This dropdown would contain Jungle4, EOS, WAX, Telos, and UX
  • When the user changed this dropdown, it'd remember their choice and show somewhere on the page
  • As the user is browsing documentation or guides, all the chain-specific information would change to be that blockchain
  • This means https://jungle4.greymass.com would be not always jungle 4, but a specific chain
  • The same as the above, except with chain IDs.

This idea came from Telegram here: https://t.me/wharfkit/1362

I'm not sure how we'd accomplish this, except maybe we write some kind of variable into the page that happens on page render? Maybe there's a [[[chain_url]]] string in the markdown, which then persists in the HTML, and when the page renders, reads the users preference and renders https://jungle4.greymass.com?

I'm not sure we should jump on this immediately, but would like to know what kind of effort it'd take to pull this off.

@deansallinen
Copy link
Contributor

Aside from the chain name and URL, what else would be changing? Would entire code blocks be different?

@aaroncox
Copy link
Member Author

It's just the chain name, chain ID, and URL basically. I don't think much else would change.

@david-at-greymass david-at-greymass moved this to Todo in Wharf v1.0 Sep 25, 2023
@david-at-greymass david-at-greymass moved this from Todo to Icebox in Wharf v1.0 Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Icebox
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants