Skip to content
A website that provides answers to simple dev questions.
JavaScript
Branch: master
Clone or download
molebox Merge pull request #3 from spences10/master
fix positioning on code button
Latest commit 2c88269 Jan 24, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
content added author to posts Jan 22, 2020
src
.gitignore setup Dec 3, 2019
README.md
gatsby-browser.js
gatsby-config.js
gatsby-node.js
gatsby-ssr.js added test mdx files, hooked up stuff Dec 4, 2019
package.json added page transitions, footer links, cleaned up code Dec 10, 2019
root-wrapper.js fix positioning on code button Jan 24, 2020
yarn.lock added page transitions, footer links, cleaned up code Dec 10, 2019

README.md

justask.dev

The motivation behind this website is to provide an easy way for developers new and old to search for those annoying things we all forget.

If you have been googling for an answer to a question and found it then please consider sharing it here so that others might benifit. The goal of this site is growth through community contributions.

To submit a PR:

  • Check if the category already exists in the content folder

  • If it does exist create your mdx file under that category and name it the question that will be answered. You can check the current mdx files/answers for an example of how to follow the structure

  • Try to keep the descriptions to the absolute minimum of what is required to understand the problem and provide the solution. This isnt a blog post!

  • If the category doesnt exist create a folder named after the new category in the content folder.

  • Create a page in the pages folder with the following naming myCategory-answers.js

  • Copy paste the contents from one of the other pages and change the graphql query name to reflect the new category, and change the category filter to the new category.

export const query = graphql`
  query MYCATEGORY_INDEX_QUERY {
    allMdx(
      sort: { fields: [frontmatter___date], order: DESC }
      filter: {
        frontmatter: { published: { eq: true }, category: { eq: "myCategory" } }
      }
    ) {
      nodes {
        id
        excerpt(pruneLength: 250)
        frontmatter {
          title
          date(formatString: "YYYY MMMM Do")
          category
        }
        fields {
          slug
        }
      }
    }
  }
`;
  • In the index.js, copy paste the last link and direct it to your new category page
 <PageLink page="myCategory-answers" title="My Category" />
  • Add your new category to gatsby-config.js
        {
          resolve: 'gatsby-source-filesystem',
          options: {
            path: `${__dirname}/content/myNewCategory`,
            name: 'myNewCategory',
          },
        },

When you create a branch it would be great if you could use the question you are answering. 😃

Built With

Authors

  • Rich Haines - Hungry Bear Studio

License

This project is licensed under the MIT License

You can’t perform that action at this time.