Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 24 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
.idea
_site
coverage
node_modules
# build output
dist/

# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

# jetbrains setting folder
.idea/
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

65 changes: 35 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,48 @@
# math.js website
# Astro Starter Kit: Basics

This project contains the website of math.js, available at https://mathjs.org.
The website is static, and is hosted on [github pages](https://pages.github.com/).
```sh
npm create astro@latest -- --template basics
```

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json)

# Update
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!

To update the website with the latest version of math.js:
![just-the-basics](https://github.com/withastro/astro/assets/2244813/a0a5533c-a856-4198-8470-2d67b1d7c554)

- Update the version number of math.js in package.json.
## 🚀 Project Structure

- Install the dependencies via npm:
Inside of your Astro project, you'll see the following folders and files:

npm install
```text
/
├── public/
│ └── favicon.svg
├── src/
│ ├── layouts/
│ │ └── Layout.astro
│ └── pages/
│ └── index.astro
└── package.json
```

- Update the docs, examples, and version number via the build tool:
To learn more about the folder structure of an Astro project, refer to [our guide on project structure](https://docs.astro.build/en/basics/project-structure/).

npm run build
## 🧞 Commands

Note that this script will update a git submodule `./mathjs-src` which checks
out the `master` branch and generates the docs and examples fresh from the
source code.
All commands are run from the root of the project, from a terminal:

- Ensure any new pages are added to git.
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |

- To generate the website locally using [Jekyll](https://jekyllrb.com/):
## 👀 Want to learn more?

jekyll

This will generate the static website in the folder `_site`.

- To test the website locally, use Jekyll as server:

jekyll --server 4000

The website is than available in the browser at http://localhost:4000.


# Deploy

To deploy the website, all that is needed is to commit the changes via git,
and push the changes to the `gh-pages` branch of math.js on github.
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
3 changes: 0 additions & 3 deletions _config.yml

This file was deleted.

129 changes: 0 additions & 129 deletions _layouts/default.html

This file was deleted.

10 changes: 10 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @ts-check
import { defineConfig } from 'astro/config';
import tailwindcss from "@tailwindcss/vite";

// https://astro.build/config
export default defineConfig({
vite: {
plugins: [tailwindcss()],
},
});
45 changes: 0 additions & 45 deletions css/code.css

This file was deleted.

Loading