stacks-network / docs

Unleash Bitcoin's full potential with decentralized apps and smart contracts. The documentation covers key aspects of the Stacks network and technology and provides tutorials and other helpful content for developers.
https://docs.stacks.co
Creative Commons Zero v1.0 Universal
156 stars 235 forks source link

Feat: handle clarity 2 generated api references #1576

Closed hugocaillard closed 1 year ago

hugocaillard commented 1 year ago

Description

Fix: #1575

Screenshot 2023-02-21 at 01 06 24

Note: functions and keywords references now display a line: "introduce in: Clarity ". We could have implemented a select to display only functions available in a given Clarity version but it's not trivial because docusaurus table of content aren't dynamic. The other option would have been to have sub-menus for version "Clarity > Functions > Clarity 1 | 2", but it would have an extra click. After implementing both, I decided to remove the complexity, assuming that >80% of the time, developers will want to see the latest version (and we specify if a function is available in a given version)

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
stacks-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 27, 2023 at 1:16PM (UTC)
wileyj commented 1 year ago

looks good to me. any comments @kenrogers before i merge?