drashland / website-v2 Goto Github PK
View Code? Open in Web Editor NEWDrash Land Documentation Pages
Home Page: https://drash.land
Drash Land Documentation Pages
Home Page: https://drash.land
What: Currently, Drash v1.x docs are still in a Vue webpack bundle. Migrate it to the Next.js docs. That means make all the .md
files needed to replicate the Drash v1.x docs.
Why: The Vue bundles can't serve as a backup for documentation. The reason why we moved to .md
files was so that if our hosting (whichever provider we use) goes down (our DigitalOcean servers have gone down for maintenance a couple of times), users can reference the .md
files in this repository.
Below is a list of tasks that must be completed before this issue can be closed.
.md
files needed in /docs/drash/v1.x
(these files need to follow the convention set in /docs/drash/v2.x
and /docs/sinco/v2.x
... you'll notice a pattern of how docs are written)/public/drash
/public/assets/drash-v1.x
/public/assets/bundles/drash-v1.x.js
What:
Sites have dark and light mode so that users can switch between themes.
Why:
This is cool and easy on the eyes when needed.
Below is a list of tasks that must be completed before this issue can be closed.
LayoutTopbar
.25s
or a duration that isn't to fast that it hurts the eyesWhat:
Should we add search using Moogle?
Why:
Would be nice to search documentation and Moogle is quick and can be used in this repo.
import { Moogle } from "https://deno.land/x/[email protected]/mod.ts";
const m = new Moogle();
m.addItem(
["error", "error handling", "blah blah blah"],
{
page_title: "Error Handling",
url: "https://drash.land/drash/v2.x/tutorials/servers/error-handling",
excerpt: "Blah blah error handling",
}
);
m.search("error handling"); // returns the page title, url, and excerpt and we display it. when users click on it, it goes to the URL
Write documentation for drashland/line#41
What:
The v1 website had a back to top button appear when you scrolled down. We should introduce this again.
Why:
It sucks to scroll up.
What:
Documentation for Sinco 4.x
Why:
So that new stuff in Sinco 4.x is documented
What: Currently, Sinco v1.x docs are still in a Vue webpack bundle. Migrate it to the Next.js docs. That means make all the .md
files needed to replicate the Sinco v1.x docs.
Why: The Vue bundles can't serve as a backup for documentation. The reason why we moved to .md
files was so that if our hosting (whichever provider we use) goes down (our DigitalOcean servers have gone down for maintenance a couple of times), users can reference the .md
files in this repository.
Below is a list of tasks that must be completed before this issue can be closed.
.md
files needed in /docs/sinco/v1.x
(these files need to follow the convention set in /docs/drash/v2.x
and /docs/sinco/v2.x
... you'll notice a pattern of how docs are written)/public/sinco
/public/assets/sinco-v1.x
/public/assets/bundles/sinco-v1.x.js
seems we're missing these docs in drash services
I think it should use the code variable set at the beginning of the https://drash.land/drash/v2.x/tutorials/servers/configuration#error-handler-new-args-any-ierrorhandler section.
// ... and so on ...
// Return the response for Drash to send to the client
return response.json({
message,
});
// The above will result in the following response ...
//
// {
// message: "Whatever the message variable was set to.",
// }
//
// ... and will have the correct status code in the Status Line of the
// response
Like this:
response.code = code
We need to state when a feature was introduced. For example:
This feature was introduced in v2.1.0. Please make sure you are using v2.1.0 (or higher) before proceeding with this tutorial.
What: Currently, dmm v1.x docs are still in a Vue webpack bundle. Migrate it to the Next.js docs. That means make all the .md
files needed to replicate the dmm v1.x docs.
Why: The Vue bundles can't serve as a backup for documentation. The reason why we moved to .md
files was so that if our hosting (whichever provider we use) goes down (our DigitalOcean servers have gone down for maintenance a couple of times), users can reference the .md
files in this repository.
Below is a list of tasks that must be completed before this issue can be closed.
.md
files needed in /docs/dmm/v1.x
(these files need to follow the convention set in /docs/drash/v2.x
and /docs/sinco/v2.x
... you'll notice a pattern of how docs are written)/public/dmm
/public/assets/dmm-v1.x
/public/assets/bundles/dmm-v1.x.js
What:
Update lifecycle diagram to have a white background.
Why:
When you switch to dark mode, the lifecycle diagram is kind of hard to read since it has black text showing on the dark mode background.
What: Code was done fairly quickly to roll out Drash v2.x docs. It hasn't been linted, hasn't been formatted, and hasn't been checked against best practices. The code needs to formatted, linted, and checked against best practices in React AND Next.js.
Also, let's have a GitHub workflow that lints and does a formatting check.
Why: Let's not have crappy code and make it easier to follow a standard.
Below is a list of tasks that must be completed before this issue can be closed.
What: Currently, Line v0.x docs are still in a Vue webpack bundle. Migrate it to the Next.js docs. That means make all the .md
files needed to replicate the Line v0.x docs.
Why: The Vue bundles can't serve as a backup for documentation. The reason why we moved to .md
files was so that if our hosting (whichever provider we use) goes down (our DigitalOcean servers have gone down for maintenance a couple of times), users can reference the .md
files in this repository.
Below is a list of tasks that must be completed before this issue can be closed.
.md
files needed in /docs/line/v0.x
(these files need to follow the convention set in /docs/drash/v2.x
and /docs/sinco/v2.x
... you'll notice a pattern of how docs are written)/public/line
/public/assets/line-v0.x
/public/assets/bundles/line-v0.x.js
Section on the landing page to list maintainers
What:
In the docs we say export * as Drash from "https:// ... v2.0.0";
. We should replace the version with <version>
and provide a link to our releases page.
Why:
This removes the need for us to update our docs every time we release.
Correct me if I'm wrong but I think this line has a typo:
const { channel, message: { message } } = packet;
It should be:
const { channel, message } = packet;
Thanks!
A clear and concise summary of the bug.
A clear and concise description of what you expected to happen.
A list of suggested solutions to try/implement.
If applicable, add screenshots to help explain your problem.
Add any other context that will help the project maintainers investigate this issue.
What:
Show how to mock imported modules via import statements.
Why:
Jest has auto-mocking, but has a lot of code to accomplish it. Instead, we'll show a native way to do it.
be nice for us to add the meta tags so when posting https://drash.land/sinco/v4.x/getting-started/introduction on discord for example, a small logo, title, description etc pop up. Atm, nothing pops up
What: Currently, Wocket v0.x docs are still in a Vue webpack bundle. Migrate it to the Next.js docs. That means make all the .md
files needed to replicate the Wocket v0.x docs.
Why: The Vue bundles can't serve as a backup for documentation. The reason why we moved to .md
files was so that if our hosting (whichever provider we use) goes down (our DigitalOcean servers have gone down for maintenance a couple of times), users can reference the .md
files in this repository.
Below is a list of tasks that must be completed before this issue can be closed.
.md
files needed in /docs/wocket/v0.x
(these files need to follow the convention set in /docs/drash/v2.x
and /docs/sinco/v2.x
... you'll notice a pattern of how docs are written)/public/wocket
/public/assets/wocket-v0.x
/public/assets/bundles/wocket-v0.x.js
this is a test to test the discord webhook
What:
When we tell users about where to find our releases for a specific version, we want to ensure that we're only showing them the version that applies to the documentation they're looking at. For example, if they're on Drash v2.x docs, then we should provide a link to the GitHub releases page that only shows v2 releases.
See here: #15 (comment)
Why:
It's confusing to show all versions for documentation pages on a specific major version
What:
The "Adding {module} as a dependency" page kind of works. It would be better if we could show that content on each tutorial.
Why:
Tutorials can be ambiguous because we reference a deps.ts file that isn't mentioned in tutorials. We assume the reader has read the "Add {module} as a dependency page" which I think can be improved. We have PRs open labeled "DO NOT CLOSE" that pretty much go over this issue. We should improve the experience here.
Below is a list of tasks that must be completed before this issue can be closed.
## Steps
1. {{ replace_deps_drash }}
... rest of content
The above, when rendered through react-markdown, would replace the variable {{ replace_deps_drash }} with the step to create a deps.ts file and a code block showing how we export from it. Like below:
1. Add your deps.ts file.
{code block here}
We may be able to leverage the OrderedList component to do this for us by creating our own and passing it to react-markdown
What:
Each markdown page should have an Edit This Page button or link. The button/link should open the GitHub page in a new tab to edit the markdown file associated with the page to be edited.
Why:
Makes it easy for us and users to contribute to a page that needs edits.
What: Code was done fairly quickly to roll out Drash v2.x docs. It hasn't been linted, hasn't been formatted, and hasn't been checked against best practices. The code needs to formatted, linted, and checked against best practices in React AND Next.js.
Also, let's have a GitHub workflow that lints and does a formatting check.
Why: Let's not have crappy code and make it easier to follow a standard.
Below is a list of tasks that must be completed before this issue can be closed.
Document the following feature: drashland/drash#619
What:
Write docs on Node.js usage using tabbed code blocks from #145
Why:
Because it's the documentation task for drashland/rhum#155
The example uses a const that is not defined
public GET(request: Drash.Request, response: Drash.Response): void {
const typescript = Deno.readFileSync("/path/to/my/typescript/file.ts");
return response.send<string>("application/typescript", body);
}
i dont think this is mentioned anywhere, even though i swear we added it ๐ค
What:
I added tag_string
and tag_string_fns
to dexter's configs so that it can configure Unilogger's tag_string
and tag_string_fns
configs.
Why:
Gives the user more flexibility with log tags.
eg
Here is an example of how your server file may look
import { all da services }
const paladin = new paladin()
From @crookse :
the following pages need their content indented underneath the numbered lists (like the steps section and the verification section):
https://drash-land-git-sinco-v3-docs-drash-land.vercel.app/sinco/v3.x/tutorials/page/evaluate
https://drash-land-git-sinco-v3-docs-drash-land.vercel.app/sinco/v3.x/tutorials/page/cookies
https://drash-land-git-sinco-v3-docs-drash-land.vercel.app/sinco/v3.x/tutorials/page/change-location
https://drash-land-git-sinco-v3-docs-drash-land.vercel.app/sinco/v3.x/tutorials/page/selecting-elements
After clicking a module and being redirected to the docs pages, clicking the built in back button does nothing
back button should go back
Sidebar overlaps text when window width is decreased. Sidebsr should slide out of view and show the sidebar toggle button when the content is nearly flushed with the right side of the sidebar
Document the following feature: drashland/drash#617
Scrolling the side bar on mobile closes the side bar randomly
Side bar should be scrollable until it is closed manually by using the X button
What:
There are many ways to import Drash:
import * as Drash from ".../drash/mod.ts";
import { Something } from ".../drash/mod.ts";
import Something from ".../drash/src/http/something.ts";
Each import method will have a different dependency tree. We should inform users about the different ways to import Drash so they can be informed on the size of their dependency tree.
Why:
Importing a dependency and not using it is a waste of space. Informing users how they can keep their applications small would be a nice addition to the docs.
What:
Modules that support more than Deno should have example code blocks with tabs. Tabs would be clickable and would show Deno, Node, Browser, etc. example code.
Why:
Better dev UX. Removes ambiguity and assumptions.
Below is a list of tasks that must be completed before this issue can be closed.
Remove the link because dmm doesn't have an API. Currently, it shows up as: https://doc.deno.land/https://deno.land/x/dmm/mod.ts
What:
Add the favicon
Why:
The favicon doesn't exist, so drash.land shows Next.js' favicon
When going to the homepage for the first time, you'll see the GitHub icon for a split second fill up the size of the screen.
As the page is loading (that is, being mounted by React) a loading screen should be displayed instead.
Add a useEffect() hook to determine when the page is fully loaded and then show the page.
If the page has not been loaded then make the component return null or a loading screen. I opt for the loading screen.
For the GitHub icon, set a max height on it so it doesn't enlarge to the size of the screen.
when using firefox as the driver, if you have your usual browser open that you use for youtube or stackoverflow, the .done()
method will close it
Hi, I'd like you to check line 68-71. I think these are expression of v1.
const id = this.request.pathParam("id");
const name = this.request.pathParam("name");
const age = this.request.pathParam("age");
const city = this.request.pathParam("city");
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.