Skip to content

feat: New Landing Page and Sidebars, Documents Updates #139

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

Closed
wants to merge 1 commit into from

Conversation

xrissoula
Copy link
Contributor

@xrissoula xrissoula commented Mar 27, 2025

Description

This PR revamps our docs landing page and updates the Getting Started section, addressing outdated content from previous PRs and issues. It reorganizes the documentation according to the Divio principles and merges or removes obsolete tutorial information. Key highlights include:

  • Rearranged sidebar structure for clearer navigation.
  • Revamped docs/README.md to serve as an effective landing page.
  • Cleaned up old tutorial docs (now integrated into reference or removed if obsolete).
  • Added new or revised instructions for setting up Polykey, connecting identities, creating vaults, and sharing secrets.

These changes incorporate feedback from the old PR and aim to provide a more streamlined, user-friendly introduction to Polykey.

Tasks

  • 1. Revamp docs landing page (home page) for clarity and engagement.
  • 2. Clean up & reorganize Getting-Started docs (installation, bootstrapping, identity claims, etc.)
  • 3. Move or delete outdated PK-CLI tutorial content (reference info now in the Polykey-CLI commands).
  • 4. Add missing instructions for vault creation, secret management, and sharing scenarios.
  • 5. Rearrange sidebar to reflect the new Divio-based structure.

Final checklist

  • Domain specific tests
  • Full tests
  • Updated inline-comment documentation
  • Lint fixed
  • Squash and rebased
  • Sanity check the final build

Copy link
Member

@aryanjassal aryanjassal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a couple of changes that you need to make. About half of them are either me nitpicking or formatting errors.

One consistent observation I made was that you relied on the previous content too much and did not verify the commands. Half of the commands are no longer working. By testing the commands yourself, you could have verified the authenticity of the commands and known that the documentation actually works and new people can understand what they need to do with it.

If you are having issues understanding it yourself, then it would be difficult for others to understand it as well.

Comment on lines +59 to +69
#### Unix-like Systems Example

```bash
polykey secrets env --env-format unix --env Weather-Ops:API_KEY
```

#### JSON Format Example

```bash
polykey secrets env --env-format json --env Weather-Ops:API_KEY
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Give output example here instead of examples of writing a command. The secrets don't have to actually store important data, they can just store some gibberish text.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think i've fixed this now.

Comment on lines +101 to +103
```bash
polykey secrets env --env AWS-Creds:AWS_ACCESS_KEY_ID,AWS-Creds:AWS_SECRET_ACCESS_KEY -- aws s3 ls
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if separation works by using a comma. Instead, specify multiple env paths before the command.

$ polykey secrets env aws-creds:AWS_ACCESS_KEY_ID aws-creds:AWS_SECRET_ACCESS_KEY -- aws s3 ls

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok done

The Polykey core contains the service, domain business logic and persistence
layers of Polykey.

It is written in TypeScript and C++.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also no longer true. Polykey is basically completely written in typescript. Only supporting libraries have platform-native C++/Rust code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok fixed

Install it with:

```shell
npm install --location=global polykey
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Polykey is just library code and will not have any executable code. Instead, they need to install polykey-cli, but that is already covered in previous sections. We might need to have a quick chat to discuss this page a bit more, as most of this page is severly out of date.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok i've fixed it but lets talk and see if I'm correct in my fix

@CMCDragonkai CMCDragonkai self-requested a review April 11, 2025 01:21
@CMCDragonkai
Copy link
Member

I see alot of review comments identifying things that you should have been able to identify yourself just by testing the commands on your own computer @xrissoula. We've had a meeting to discuss this along with filling in some computer architecture context, so in the future things like polykey vaults delete myvault being unknown, should be discovered by you directly @xrissoula and not require @aryanjassal to write a review comment about.

@CMCDragonkai
Copy link
Member

Are you going to change the branch name of this PR feat-docs-landing-page?

@xrissoula xrissoula mentioned this pull request Apr 11, 2025
11 tasks
@xrissoula xrissoula closed this Apr 13, 2025
@CMCDragonkai
Copy link
Member

Closed in favour of #140.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Polykey-Docs 1.0: Revamping the PK-CLI set-up Guide under Getting Started Category
3 participants