diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index a5067a1e8b1a..276ffcdc3367 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -254,6 +254,7 @@ GEM PLATFORMS x86_64-darwin-20 + x86_64-darwin-21 DEPENDENCIES github-pages diff --git a/docs/README.md b/docs/README.md index b9b234ae74e8..c50c8234aae7 100644 --- a/docs/README.md +++ b/docs/README.md @@ -11,14 +11,14 @@ Expensify Help is mainly composed of static HTML (`.html`) and Markdown (`.md`) - Install Jekyll locally by running: ``` gem install bundler -cd help +cd docs bundle install ``` ## Steps 1. Open the Terminal command line in macOS. -2. Navigate to the `help` folder in the command line. +2. Navigate to the `docs` folder in the command line. 3. Run `bundle exec jekyll serve --livereload`. - _Note: If you see an error like `Unable to load the EventMachine C Extension...`, try running `gem uninstall eventmachine && bundle install`. If that doesn't work just removing the `--livereload` flag should work._ 4. Open http://localhost:4000 in the browser to see the site running locally. @@ -26,8 +26,8 @@ bundle install # How the project is structured -The [help](https://github.com/Expensify/App/tree/e6cea38ef22f83ae4730a34a9281d8962388dff8/help) folder will contain the following main folders: -- *_layouts*: This contains HTML templates used by Jekyll to create pages in the static site. For now it has only one file ([default.html](https://github.com/Expensify/App/blob/e6cea38ef22f83ae4730a34a9281d8962388dff8/docs/_layouts/default.html)) which will render the common HTML elements and the assets on every page. It also supports the use of the [liquid template language](https://shopify.github.io/liquid/). +The [docs](https://github.com/Expensify/App/tree/main/docs) folder will contain the following main folders: +- *_layouts*: This contains HTML templates used by Jekyll to create pages in the static site. For now it has only one file ([default.html](https://github.com/Expensify/App/blob/main/docs/_layouts/default.html)) which will render the common HTML elements and the assets on every page. It also supports the use of the [liquid template language](https://shopify.github.io/liquid/). - *_includes*: Contains HTML content that can be reused on different pages. For now, it contains various html elements that are used to populate the left-hand-nav (LHN). - *assets*: it will contain the three sub-folders css, images, and js. - The css folder can contain either .css or .sass files (where SASS files will be processed by Jekyll and it will generate a CSS file in an output folder also generated by Jekyll). @@ -43,7 +43,7 @@ More details about the Jekyll project structure can be found [here](https://jeky ## Add content -Copy the [template](https://github.com/Expensify/App/blob/e6cea38ef22f83ae4730a34a9281d8962388dff8/docs/TEMPLATE.md) file and rename it with the name of the article title, i.e. [SmartScan.md](https://github.com/Expensify/App/blob/e6cea38ef22f83ae4730a34a9281d8962388dff8/docs/articles/request-money/request-money/SmartScan.md) (you can use dashes for spaces in the file name if it's needed) and put the new file inside of the respective hub folder or sub-folder. The title will be rendered automatically according to the filename (the dashes will be removed in the generated site page). +Copy the [template](https://github.com/Expensify/App/blob/main/docs/TEMPLATE.md) file and rename it with the name of the article title, i.e. [SmartScan.md](https://github.com/Expensify/App/blob/main/docs/articles/request-money/SmartScan.md) (you can use dashes for spaces in the file name if it's needed) and put the new file inside of the respective hub folder or sub-folder. The title will be rendered automatically according to the filename (the dashes will be removed in the generated site page). The sections of the article will be filled and nested automatically in the LHN, just ensure to use the [heading markdown tags](https://www.markdownguide.org/cheat-sheet/) correctly. @@ -58,25 +58,25 @@ There are 3 main components in the hub page: 1. Stage title, 2. Row of Card butt -
+ + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur hendrerit euismod dui, nec fermentum urna porta ultrices. +
- +