SvelteKit app for tutorials in the Stack programming language
To add or edit contents of this tutorial, do like below;
-
Add a directory in contents/article. The directory’s name become a path to the content’s URL.
-
Create a .stk file in which a sample code is written. The code is displayed in the online execution environment on the right side of the tutorial. The file name does not matter, as long as the file extension is .stk .
-
Create a .md file containing the content of the tutorial. Write a Front Matter at the beginning of the file. Items are as follows;
- title: title of the article
- next: name of the directory where the next article is written. If there is no next article, write null.
-
Put files created in step 2 and 3 in the directory created in step 1.
Once you've cloned the project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of this app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.