trivia11y

所属分类:自然语言处理
开发工具:SCSS
文件大小:0KB
下载次数:0
上传日期:2023-08-07 18:05:12
上 传 者sh-1993
说明:  用于学习或娱乐(或两者)的问题和答案。,
(Questions and answers for either studying or fun (or both).,)

文件列表:
.eleventy.js (799, 2024-01-09)
.env.example (428, 2024-01-09)
.eslintrc.js (221, 2024-01-09)
CONTRIBUTING.md (1290, 2024-01-09)
LICENSE (1073, 2024-01-09)
package-lock.json (276061, 2024-01-09)
package.json (1291, 2024-01-09)
pages/ (0, 2024-01-09)
pages/404.md (176, 2024-01-09)
pages/_data/ (0, 2024-01-09)
pages/_data/global.js (198, 2024-01-09)
pages/_data/processEnv.js (141, 2024-01-09)
pages/_data/questionData.js (2847, 2024-01-09)
pages/all/ (0, 2024-01-09)
pages/all/flash-cards/ (0, 2024-01-09)
pages/all/flash-cards/index.njk (1761, 2024-01-09)
pages/all/multiple-choice/ (0, 2024-01-09)
pages/all/multiple-choice/index.njk (1820, 2024-01-09)
pages/all/short-answer/ (0, 2024-01-09)
pages/all/short-answer/index.njk (1861, 2024-01-09)
pages/flash-cards/ (0, 2024-01-09)
pages/flash-cards/index.njk (1909, 2024-01-09)
pages/index.njk (1634, 2024-01-09)
pages/multiple-choice/ (0, 2024-01-09)
pages/multiple-choice/index.njk (1979, 2024-01-09)
pages/questions.ejs (120, 2024-01-09)
pages/service-worker.njk (157, 2024-01-09)
pages/short-answer/ (0, 2024-01-09)
pages/short-answer/index.njk (2012, 2024-01-09)
pages/sitemap.njk (756, 2024-01-09)
... ...

# Trivia11y Test your accessibility knowledge in a variety of question-and-answer formats: - Flash Cards - Flash Cards with Typing - Multiple Choice ## Getting Started ### Environment Variables Copy the contents of `.env.example` into a file called `.env` and fill in the missing values. The example file should have instructions on where to find those values. ### Dependencies and Scripts This project requires [Node.js](https://nodejs.org) and `npm` (included with Node.js) to build the site and run it in local development. The LTS (Long Term Support) version is recommended for most cases. Here are the main commands you'll need to run to get the project up and running. ```sh # install dependencies npm install # run the site in development mode npm start # build the site for production npm run build # lint your code for possible issues npm run lint # run unit tests (by default does nothing) npm run test # update dependencies to their latest versions npm run update-deps ``` ## Setting up your own Airtable base If you want to fork this project and use its core mechanics against your own set of questions, you can create a new [Airtable](https://airtable.com) base. To do so without needing to make complex changes, you'll need to match the existing schema. | Column Name | Column Type | Description | | -------------------- | ------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | Question | Single line text | The question, which should be kept short | | Answer | Long text with rich text formatting enabled | The correct answer to the question | | Distractor 1 | Long text with rich text formatting enabled | An incorrect answer to the question | | Distractor 2 | Long text with rich text formatting enabled | An incorrect answer to the question | | Explanation | Long text with rich text formatting enabled | An explanation about why the correct answer is correct or other additional details | | Multiple Choice Only | Checkbox | Whether the question should only show up in the Multiple Choice categories (like for true/false questions) | | Tags | Multiple Select | Used to group questions into different categories, can include multiple tags per question | | Published | Checkbox | Whether the question should be included when the site is built or treated as a draft | ### Finding your base's ID You will need your base's ID to set the `AIRTABLE_BASE_ID` environment variable in your `.env` file. You can find this in Airtable by navigating to the API documentation for your base (Help > API Documentation). It is also the first segment of the URL after `airtable.com` when you're viewing your base, as in `https://airtable.com//`. ### Creating a personal access token To set the `AIRTABLE_API_KEY` environment variable in your `.env` file, you will need to [create a personal access token](https://airtable.com/create/tokens). You will need to set the scope to `data.records:read` for the token and make sure it only has access to your base. Once both `AIRTABLE_BASE_ID` and `AIRTABLE_API_KEY` are defined in your `.env` file, you should be good to go!

近期下载者

相关文件


收藏者