Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #41 from brown-ccv/documentation-setup
Browse files Browse the repository at this point in the history
docs: replace astro docs with mmp specific docs
  • Loading branch information
hetd54 authored May 2, 2024
2 parents 0e47ba8 + 999ec7a commit b017fe1
Showing 1 changed file with 42 additions and 45 deletions.
87 changes: 42 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,69 +1,66 @@
# mmp
Mesoamerican Migration Project

```sh
npm create astro@latest -- --template blog
```

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

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

![blog](https://github.com/withastro/astro/assets/2244813/ff10799f-a816-4703-b967-c78997e8323d)

Features:

- ✅ Minimal styling (make it your own!)
- ✅ 100/100 Lighthouse performance
- ✅ SEO-friendly with canonical URLs and OpenGraph data
- ✅ Sitemap support
- ✅ RSS Feed support
- ✅ Markdown & MDX support
Mesoamerican Migration Project

## 🚀 Project Structure

Inside of your Astro project, you'll see the following folders and files:

```text
├── public/
├── admin/
├──config.yml
├── src/
   ├── components/
   ├── content/
   ├── layouts/
   └── pages/
├── components/
├── content/
├── layouts/
└── pages/
├── astro.config.mjs
├── README.md
├── package.json
└── tsconfig.json
```

Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
## Getting Started with Development

There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
### Install Dependencies

The `src/content/` directory contains "collections" of related Markdown and MDX documents. Use `getCollection()` to retrieve posts from `src/content/blog/`, and type-check your frontmatter using an optional schema. See [Astro's Content Collections docs](https://docs.astro.build/en/guides/content-collections/) to learn more.
Install the `node`-dependencies and the workspaces:

Any static assets, like images, can be placed in the `public/` directory.
```zsh
npm install
```

### Develop Site in Workspace

Run the example site in develop mode:

```zsh
npm run start
```

## 🧞 Commands
If you want to run the Static CMS backend, then you need to start the server in a
separate terminal window.

All commands are run from the root of the project, from a terminal:
```shell
npx @staticcms/proxy-server
```

In the `public/admin/config.yml` file, change the `local_backend` parameter to:

```yml
local_backend: true
```
| 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 |
Then load the `https://localhost:4321/admin/index.html` to view the Static CMS UI.

## 👀 Want to learn more?
### Use Prettier Code Formatter in WebStorm

Check out [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
To set up the prettier code formatter, first install the dependencies (`npm install`) and then ensure that `prettier`
is activated in the dialog box: WebStorm > Preferences > Languages and Frameworks > JavaScript > Prettier.

## Credit
The settings should be:

This theme is based off of the lovely [Bear Blog](https://github.com/HermanMartinus/bearblog/).
- Prettier package: `yarn:package.json:prettier` (only selectable if you have previously run `yarn install`)
- Run for files: the default suggested by WebStorm
- [x] On 'Reformat Code' action
- [x] On save

0 comments on commit b017fe1

Please sign in to comment.