As a developer, it is not clear how to find docs about developing an app for a Directus instance.

未关闭
#265 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
技术栈
graphql
领域
documentation

调研方向

首先查看 issue 中描述的文档主页、Guides/Connect 导航、Start tutorial、API Reference 和 SDK page。梳理面向开发者的入口和链接,然后验证开发者无需依赖隐藏或含义不明确的标签,就能找到 API、GraphQL、SDK 以及相关应用构建指南。

由索引模型根据 Issue 内容生成。

描述

Let's say I am a developer and my task is to build an app based on a Directus instance using the API or any of the available SDK.

In the current navigation structure of the documentation, it is not clear where to find that kind of information (it's actually under the "Connect" name in the "Guide"). There are also some links towards this information when scrolling down on the home page or in the 4th page of the "Start" tutorial.

As I'm not really interested in the 'User Guide' for studio, I'm struggling to find where to look especially if I unintentionally missed those links which is easy due to the amount of information presented in those pages.

Here are some example questions I might need answer to when opening the docs:

  • What are my options to build an app with a working Directus project?
  • On which URL I need to do a REST request?
  • How to use GraphQL to query Directus?
  • Are there SDKs I can use to make it easier to build an app?
  • What if I'm writing an app using Go, is there a Go SDK (might be community-created)?

Some issues I have found in regards to this in the current docs.

Issues with the Homepage

  1. Home page -> Features -> Data Engine -> Connect

Image

We have two product names here ('Data Engine' and 'Connect') that hide the intent of finding the developer docs.

  1. A bit below in the Home Page, there is 'Directus APIs' section:

Image

  • The Section is titled "API" so if we are looking for SDKs or CLIs we could (mistakenly) skip this section when scanning the page
  • The Quickstart link is labeled "Learn how to connect with Directus", which is unclear if it's doing HTTP requests, connect integrations or setup user authentication.
  • The API Reference link is labeled "Learn how to use the Directus API" but it leads to a section of the docs that actually does not include information about how to use the API to build an app.
  • The SDK link is actually pretty clear and links to the page that has information about the SDKs 👍
  1. Then further down we have links to the Tutorials pages which are pretty dense grids which are a bit hard to scan and I might have to dig to find the information I'm looking for.

  2. The community-created SDKs are not actually listed anywhere else other than on the home page in the section below the Tutorials.

Issues with the Navigation

  1. Start

Image

If I understand correctly this is the Getting started tutorial. I may not click on this one because I'm not actually looking for starting a Directus instance nor am I creating a new project.

After clicking on it though we can see that the 4th page is about using the API 💯 But then on this page there are no links to the "Connect" docs (except the 'See all available query parameters' one), including the SDKs if I'm not interested in doing HTTP requests by hand (or if I want to use GraphQL).

  1. The Guides menu doesn't have any items that are related to developers or building apps with the Directus APIs/SDKs.

Image

But in fact there is one, it's the 'Connect' item which is something I don't really know what it is for unless I click on it.

  1. Resources does link to the Tutorial pages I mentioned above with the drawbacks they have.

  2. API Reference links to a page that has very little documentation about how to do a REST or a GraphQL query to the Directus instance, but it does have a link to the SDKs page in "Connect".


Some proposals

  • Having a dedicated section for developers with:
    • How to use the API (Rest and GraphQL)
    • How to Authenticate (using the API)
    • Official SDKs
    • Community SDKs
    • How to use the CLI
    • Docker images maybe?
    • How to create extensions
    • ...
  • Promoting the Developer-related docs in the navigation header
  • Rename "Connect" to something clearer like "APIs & SDKs" or "Developer Tools"
  • List the community-created SDKs in the SDK page
主要语言
TypeScript
星标
24
派生
90
平均合并
3 天 22 小时
30 天内合并 PR
19

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

directus/docs 的其他 Issue

查看 directus/docs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。