Editing this guide
You can actually help improve this website!
These docs are openly available and live on GitHub. If you find an error or have a suggestion for improvement, we encourage you to contribute. Your feedback helps us maintain the highest quality documentation for our users. 🙏
Roadmap
See the open issues for a full list of known issues 🪲 and features that other users have proposed already.
Content contributions
Updating an article
If you simply want to update any of our existing docs:
- Go to the docs (you’re already there 😊) and browse to the article you want to adjust (just like the page your are reading right now);
- On the bottom of the page, click “✏︎ Edit page”. You will be redirected to the GitHub editor of this page;
- Make your edits, but leave the frontmatter (= the text on top of the page between the --- lines) intact;
- Click the green “Commit changes” button in the top right, add your commit message and click the green sign off button.
Creating a new article
OR, if you want to create a new article:
- Go to /src/content/docs and select the folder (category) that fits your new article best;
- In the new folder, create a new .MDX document by clicking “Add file > Create a new file” in the top right;
- Name your file (ideally the same as the label you use in the frontmatter below);
- Create your new article, starting with this frontmatter code:
- Click the green “Commit changes” button in the top right, add your commit message and click the green sign off button.
For more information on how to work with Markdown in Astro:
- General Markdown introduction
- Markdown Cheatsheet
- [Astro Markdown & MDX] (https://docs.astro.build/en/guides/markdown-content/)
Adding a new section / category
- Go to /src/content/docs and create a new folder (these act as categories);
- Add the first article in this new category by following the steps above.\
For more info about routing and the structure of the project, check out the Astro documentation.
Adding an image to an MD(X) file
Upload the image
- Go to /src/images and on the top right click “Add file” > “Upload files”
- Drag the file(s) onto your browser or click “choose your files” to upload them.
- Add a description (just the title is enough), keep other settings and click the green “Sign off and commit changes” button
Embed the image into your document
For .MD files:
Use standard Markdown ![alt](src)
syntax in your .md
files. This syntax works with Astro’s Image Service API to optimize your local images stored in src/. Remote images and images stored in the public/ folder are not optimized.
Example:
For .MDX files:
If you require more control over your image attributes, we recommend using the .mdx
file format, which allows you to include Astro’s <Image />
component or a JSX <img />
tag in addition to the Markdown syntax.
Example:
Validate if your change actually worked:
- After your commit, go to the Actions tab and click on the latest action that has the name of your commit.
- While the website is rebuilding, the status will be orange. Once it’s green, you can check the changes on the live site.
- If the status turns red, there was an error. You can click on the red cross to see the error message and fix it.
For more details on what you can do with images in Markdown files, check out the Astro documentation.
Code contributions
If you want to go beyond just text changes, please fork the repo and create a pull request. You can also simply open an issue with the tag “bug” or “enhancement”.
- Fork the Project
- Create your Feature Branch
- Commit your Changes
- Push to the Branch
- Open a Pull Request
Setup on your local machine
-
Install (P)NPM or YARN with the links bewlow or install it through Homebrew or Chocolatey.
-
Setup the project in your favorite code editor like VSCode, Atom, or Sublime Text and clone the repository to your local machine.
-
Install the project dependencies. Open your terminal, navigate to the project’s root directory, and execute:
npm install
This command will install all the necessary dependencies defined in thepackage.json
file. -
Development Commands
npm run dev
: Starts a local development server with hot reloading enabled. View your local developement environment athttp://localhost:4321
npm run preview
: Serves your build output locally for preview before deployment.npm run build
: Bundles your site into static files for production.
For detailed help with Astro CLI commands, visit Astro’s documentation.
-
Go forth and contribute! 🚀
Deployment
Any change to the files in the Github repository will trigger a new deployment. The site is hosted on Github Pages, and the deployment process is automated through GitHub Actions.
Building Your Site locally
Before deployment, you can test the build:
This creates a dist/
directory with your built site (configurable via outDir in Astro).
Project Structure
ScrewFast organizes modular components, content, and layouts to streamline development and content management.
Static Assets and Public Resources
Static files served directly to the browser are within the public
directory at the root of the project.
The scripts in the public/scripts/vendor
directory are essential for the interactivity and aesthetic features of the website. Do not remove these unless you plan to replace their functionality.