aptos-labs / developer-docs

Source for the Aptos developer docs
https://aptos.dev
Apache License 2.0
890 stars 101 forks source link

Fix navigation and formatting in Build -> Smart Contracts (Move) -> Objects #680

Open igor-p opened 1 month ago

igor-p commented 1 month ago

Description

On https://aptos.dev/en/build/smart-contracts/objects/creating-objects, the sidebar table of contents is broken (due to the wrong headings used in the mdx file). This fixes the ToC and ensures correct headings are used.

Before
image
After
image

Another issue is that routing to the Objects page under the Addressable Storage section is broken. On clicking it, the page will navigate correctly, but the sidebar shows you in Object under Aptos Standards (they both use objects as the route). This fixes that issue by using the object path for the route under "Aptos Standards" and objects for the route under "Addressable Storage".

I added redirects for the old routes.

https://github.com/user-attachments/assets/1c6ded2f-ae11-4cc4-ae2c-317a347ced69

Checklist

vercel[bot] commented 1 month ago

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

Name Status Preview Comments Updated (UTC)
developer-docs-nextra ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 26, 2024 11:28pm