Case study · Documentation · Course platform
iTradeAIMS Docs & Academy: product documentation with a course platform built in
Customers need two things after they buy: a manual for the product, and a way to learn the method behind it. Those used to live in different places and drift apart. I built one site that holds both. The manuals are a Docusaurus site, and the Academy is a course platform I wrote inside it, so a lesson and the manual it teaches are reviewed, tested and shipped together.
- Role
- Designer, developer and editor
- Timeline
- May 2026 – present
- Live
- docs.itradeaims.net
- product docs on one site, for MT4, MT5 and TradingView
- 17
- courses with 106 lessons, written and video
- 8
- interactive tools that run inside lessons
- 6
- unit tests, plus type, search and analytics checks on every build
- 196
- commits since May 2026
- 672
The problem
Why this needed building
What went wrong before
- Manuals, course videos and product pages lived in different places, so a lesson could teach a setting the product no longer had.
- Pages tried to sell and document at once. Purchase sidebars squeezed settings tables into narrow columns.
- A new product could go on sale with no documentation, and nothing would notice.
- Chart examples were screenshots. A student could look at them but not step through them.
What I needed
- Manuals and courses in one repository, reviewed and released together.
- Courses a customer can start without an account, that remember where they stopped.
- Chart lessons a student can replay candle by candle and practise on.
- A build that fails when a product has no docs decision.
- Wording that stays inside advertising rules for financial products, checked by a script rather than by memory.
Architecture
How it fits together
Select a box to see what it does, or pick a journey and press Play to follow it step by step.
Rule: a lesson and the manual it teaches ship in the same build.
Each box is a part of the system
Click one to read what it does and why it was built that way.
Key decisions
What I chose, and what I rejected
Each one is a written decision record in the repository.
The course platform lives inside the docsArchitecture
I wrote the course player as React components in the docs site. Courses are data files in the same repository as the manuals, so a change to a product and the lesson about it go through one review and one build.
Rejected: an LMS plugin on the shop's WordPress site. That means another login, another database, and lessons drifting away from the manuals they rely on.
Progress is saved in the browserProduct
Each course keeps its completed lessons and last position in the browser's local storage. If storage is missing or corrupt, the course starts fresh, and a failed save never breaks a lesson.
Rejected: accounts and a progress database. That adds sign-up friction and personal data to look after, for a feature that is a convenience.
Chart lessons are drawn from dataTeaching
Lessons are data with a written contract, drawn with TradingView's Lightweight Charts library. Students can watch a guided replay, explore candles one by one, or answer a practice question. Every chart reuses one component.
Rejected: screenshots and exported images. They can't be replayed or practised on, and they go stale when a product changes. Video production stays in its own repository.
Price data and teaching labels have separate originsIntegrity
A lesson records where its candles came from and, separately, who made each label and who approved it. Labels drawn to teach a concept are never presented as indicator output.
Rejected: treating an annotated chart as one thing. A hand-drawn label could then pass for something a product detected.
Every product needs a docs decisionQuality
A drift gate compares the shop's product list with the docs. Each product needs either a docs page this build produces or a written reason for having none. The gate runs offline, and the shop's own CI checks that the export is current.
Rejected: fetching the live catalogue during the build. That needs network access and credentials, and the build fails whenever the shop is down.
Documentation pages don't sellArchitecture
Manuals follow the layout of developer docs such as Stripe's and Tailwind's: navigation on the left, contents on the right, tables at full width. Selling stays on the shop site.
Rejected: the earlier pages that mixed a sales showcase with the manual. Two decision records were replaced by one that says so.
The AI chat assistant is paused until its relaunchProduct
I built iMi, a docs assistant with its own knowledge base, a serverless backend and a rule never to give trading advice. I took it out of the docs build for now: search and the plain-text export answer the same questions without extra build steps, chat code in every page or a backend to run. iMi will be relaunched later.
Rejected: keeping it in every build because it took work to make.
In production
Problems found and fixed
Each of these changed how the site is built.
Settings tables squeezed by a purchase sidebarLayout
Symptom
On product pages, settings tables and code blocks were cramped into a narrow column.
Diagnosis
Pages were doing two jobs. A sticky sales sidebar took the width the manual needed, and there was no table of contents.
Fix
A decision record split the jobs: the docs site documents, the shop sells. Product pages moved to a standard docs layout.
Wording that advertising rules don't allowCompliance
Symptom
A review found words like 'bot', 'no repaint' guarantees and unhedged probability claims across the docs.
Diagnosis
Rules for financial advertising were applied by memory, page by page, and new pages kept bringing the words back.
Fix
A compliance scanner with its own tests now checks every public page for banned terms, with written exceptions such as robots.txt.
Every build changed a tracked fileBuild
Symptom
Running the site locally left a modified file in git each time.
Diagnosis
The AI assistant's build step rewrote a tracked report on every run.
Fix
That step went when the assistant was taken out of the build, and builds now leave the working tree clean.
1,870 lines of CSS on a homepage that used 50Hygiene
Symptom
The homepage showed two navigation systems for the same catalogue and squeezed the product grid.
Diagnosis
Styles for removed sidebars and old prototypes had piled up in one stylesheet.
Fix
The homepage became a single centred catalogue, and the stylesheet went from about 1,870 lines to about 50.
The hosted build ran out of memoryBuild
Symptom
Adding another product docs area broke the build on Netlify.
Diagnosis
Each docs area is its own Docusaurus plugin, and the bundler needed more memory than the default.
Fix
The build memory limit was raised in config, with a comment saying why.
Method
How I built it
- 1
Terms are fixed in a glossary, for example 'setup' rather than 'signal' and 'trade-management software' rather than 'bot', and the compliance scanner enforces them.
- 2
Larger changes start as a numbered spec with user stories and a list of the checks it must pass.
- 3
Browser checks drive the chart lessons in a real browser: replay, practice, scenarios and light and dark themes.
- 4
I write the specs and the teaching content, and every lesson that uses real prices needs my recorded approval before it can be published.
What this means for your product
If your documentation and your training live in different places and drift apart, I can put them in one site that builds and tests them together, with a course player that needs no separate LMS.
I can also build interactive lessons and calculators into existing docs, and add build checks so a new product can't ship without documentation.
The courses and tools are educational. Nothing on the site, or on this page, is financial advice or a claim about trading results.