winglang / docsite Goto Github PK
View Code? Open in Web Editor NEWDocumentation for Wing
Home Page: docsite-omega.vercel.app
License: MIT License
Documentation for Wing
Home Page: docsite-omega.vercel.app
License: MIT License
Go directly to https://docs.winglang.io/concepts/simulator#using-the-simulator-api-in-wing
I expected to jump directly to the right location of the "using-the-simulator-api-in-wing" section in the file
I landed in the top of the doc
Documentation
- Wing Version: NA
- OS: NA
- Node version:NA
It used to work, I found a vercel site that has this working https://website-5wr130rjs-monada.vercel.app/concepts/simulator#using-the-simulator-api-in-wing
slack discussion: https://winglang.slack.com/archives/C048QCN2XLJ/p1669154174786549
Need to switch to payed program
My personal github token from November 2022 expired, so I went through the steps to generate a new one. The docs now say only read:packages
is required here. However, that results in a forbidden error during npm login
. If I add repo
permissions like the previous instructions, I can login. What are the actual minimum permissions needed?
With read:packages
and no repo
permissions:
npm login --scope=@winglang --registry=https://npm.pkg.github.com
npm WARN adduser `adduser` will be split into `login` and `register` in a future version. `adduser` will become an alias of `register`. `login` (currently an alias) will become its own command.
npm notice Log in on https://npm.pkg.github.com/
Username: perpil
Password:
Email: (this IS public) [email protected]
npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://npm.pkg.github.com/-/user/org.couchdb.user:perpil - Permission denied
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy, or
npm ERR! 403 on a server you do not have access to.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xxxxx/.npm/_logs/2023-01-03T18_29_48_236Z-debug-0.log
With read: packages
and repo:*
permissions
❯ npm login --scope=@winglang --registry=https://npm.pkg.github.com
npm WARN adduser `adduser` will be split into `login` and `register` in a future version. `adduser` will become an alias of `register`. `login` (currently an alias) will become its own command.
npm notice Log in on https://npm.pkg.github.com/
Username: perpil
Password:
Email: (this IS public) [email protected]
Logged in as perpil to scope @winglang on https://npm.pkg.github.com/.
When a user is land in docs.winglang.io he should not be able to see the docs, unless he was authorised and part of the contributors / maintainers github teams
General:
If user is not authenticated he should see:
If he is already authenticated but not authorised (not part of contributors / maintainers) he should see:
design required: @ekeren
DOD for us:
DOD for monada:
I've tried to run this:
npm run docs
A browser with a local instance of our docsite.
Browser tries to access:
https://undefined/authorize?redirect_uri=https%3A%2F%2Fundefined%2F&scope=openid%20profile%20email&...
No response
- Wing Version:
- OS:
- Node version:
No response
Go to https://docs.winglang.io and choose dark mode
The logo should adapt to dark mode
Documentation
N/A
No response
We want our https://github.com/winglang/wing/tree/main/docs to have the following structure of empty docs who will later be created by @eladb (see winglang/website#66)
We also want to make sure that our docsite has the proper automation to copy the same structure and present it under winglang.io/docs right panel
structure:
--help
for nowwinglang/wing:
winglang/docsite:
In addition to the Wingly extracts, we'd like to create some more videos that are hard to do in that way.
We're not gonna invest a lot of resources in them, just pick low hanging fruit with high potential.
Some ideas:
@ainvoner can we make sure we cover the basics here?
https://docusaurus.io/docs/seo
There is a bad link on the Strings section found here:
https://www.winglang.io/docs/language-reference#62-strings
String reference doc is available [here](https://www.winglang.io/docs/language-guide/language-reference#61-strings). Type of string is UTF-16 internally.
All string declaration variants are multi-line.
that link produces a 404.
I want to be able to select the Wing version for the entire documentation site, not just the API reference.
I expect some kind of a global version selector:
Here's the one in the https://docusaurus.io/docs site:
I don't see any version selector, I just see some version numbers in the API reference.
Documentation
N/A
No response
Not sure why, but once the docs site is loaded then a refresh results in a blank white page.
https://docs.winglang.io/reference/spec#1-general
Some trailing spaces are causing this.
We should check it on other files too.
DOD:
We need a first blog post
It should lay the groundwork for wing.
No response
No response
No response
I am browsing through the documentation website, and clicking through the topics.
I expect the URLs of the pages to have a nice "sluggified" name, all lowercase. You know... good web style.
Something like:
Documentation
- Wing Version:
- OS:
- Node version:
I think we need to make sure the id
attribute in the docs are nice slugs.
We want our webpage to preset well when shared in social and for SEO
Resources:
DOD:
Currently when a user is authenticated in auth0 a hook in the login process checks Pipedrive for the user and, if in the proper invite stage of the deal, adds a Role to the user which is used in the docs site for authorization to the documentation.
However, based on this comment: https://monadahq.slack.com/archives/C04BG1M439S/p1668699517184039, the check should occur against Github and not Pipedrive, looking to see if the user is part of the Contributor group (or, more generally, has access to the repo).
https://docs.winglang.io/contributors/handbook currently leads to a 404. I believe it should redirect to https://docs.winglang.io/contributors
DOD:
Similar to the existing monitor for winglang.io
We decided to use the doc site as our main site framework. The blog is already merged in there and we will put the landing page as well.
Please make sure it's password protected via Vercel.
@MarkMcCulloh wrote:
If it's worth rolling the blog into the docs site does it also make sense to roll the landing page into the docs site and just make winglang.io be the landing, docs, and blog site?
Yes I was thinking that too. Okay!
Let's make this what's behind winglang.io and use this framework for the entire site. Much simpler and cleaner!
Once we have the landing page artifacts I will add them to this repo (which we should rename winglang/website I guess)
Originally posted by @eladb in #55 (comment)
With this PR being merged and released as v0.16, the docs should be updated accordingly.
e.g. add_consumer but there are more occasions.
Happy to do it, just wasn't sure if that's on someone's plate already.
We only need the user name
Remove email
DOD:
DOD:
Can't create a PR because forking is disabled.
has clodu target
instead of cloud target
Cheers ✌️
we updated the default path to support single domain.
currently the vercel preview sites open with the default path "/" and that needs to be updated to "/docs"
We need to add a cookie consent since we are planning to install analytics on the website.
Auth0 requires an explicit definition of redirect urls during the signin process:
However, since every new branch of the docsite produces a new URL for the preview site, both auth0 needs to be updated to allow this redirect URL and the environment variables need to be updated on the preview to tell the site what the URL is that Vercel assigned to it. This makes previewing new builds too painful to set up.
There are three options I see:
Create a new branch called 'preview'. This will be a long-lived release branch alongside 'main'. anytime we want to preview a PR then it would be merged into 'preview'. This means the auth0 and Vercel setup for the 'preview' branch are one-time and static.
Pros: One-time set up
Cons: can't easily preview any PR, would have to merge to the 'preview' branch first. Could result in issues related to merging multiple things and adds more branch management work.
Create some hooks in Vercel that will update auth0 and vercel env variables on any new build.
Pros: any branch is easily previewable without ugly branch management concerns
Cons: up-front engineering work and a potentially long and ugly list of 'allowed callback urls' in auth0 which could be a pain to maintain properly.
Set up a special read of the environment and if we're in a 'preview' deployment then authentication is skipped all together.
Pros: probably simple to implement.
Cons: we remove the ability to test authentication concerns on preview builds.
Target date: 12/22/2022
Let's use this issue to track any issues we want to mention the Inflight Magazine. Just add comments here with any topic and @mbonig will pick this up from there.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.