Skip to content

Commit

Permalink
fix: fix urls for the help center (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
djaiss committed Oct 22, 2020
1 parent 746c571 commit 472d024
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@

## License

OfficeLife is open-sourced software licensed under [the BSD 3-Clause license](LICENSE).
OfficeLife is open-sourced software licensed under [the BSD 3-Clause license](LICENSE). Don't be a jerk.
38 changes: 19 additions & 19 deletions config/officelife.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
| This platform hosts the help documentation.
|
*/
'help_center_url' => 'https://docs.officelife.io/',
'help_center_url' => 'https://docs.officelife.io/documentation/',

/*
|--------------------------------------------------------------------------
Expand All @@ -140,23 +140,23 @@
|
*/
'help_links' => [
'work_from_home' => 'employees#work-from-home',
'employee_expenses' => 'expenses#employees-expenses',
'adminland_expense_categories' => 'expenses#expense-categories',
'manager_expenses' => 'expenses#approval-by-the-manager',
'accoutant_expenses' => 'expenses#approval-by-the-accounting-department',
'accountants' => 'expenses#who-can-manage-expenses',
'manager_rate_manager' => 'rate-your-manager',
'skills' => 'skills',
'account_hardware_create' => 'hardware',
'account_employee_delete' => 'employee-management#deleting-an-employee',
'account_employee_lock' => 'employee-management#locking-an-employee',
'team_recent_ship' => 'recent-ships',
'team_recent_ship_create' => 'recent-ships#creating-an-entry',
'account_general_company_name' => 'company#update-company-name',
'account_general_currency' => 'currency',
'employee_hiring_date' => 'employee-profile#hiring-date',
'employee_work_anniversaries' => 'employee-profile#work-anniversaries',
'one_on_ones' => 'one-on-one',
'work_from_home' => 'manage/employee-management.html#work-from-home',
'employee_expenses' => 'manage/employee-management.html#expenses',
'adminland_expense_categories' => 'manage/employee-management.html#expense-categories',
'manager_expenses' => 'manage/employee-management.html#expenses',
'accoutant_expenses' => 'manage/employee-management.html#expenses',
'accountants' => 'manage/employee-management.html#expenses',
'manager_rate_manager' => 'manage/overview.html',
'skills' => 'manage/employee-management.html#skills',
'account_hardware_create' => 'introduction.html',
'account_employee_delete' => 'manage/employee-management.html#deleting-an-employee',
'account_employee_lock' => 'manage/employee-management.html#locking-an-employee',
'team_recent_ship' => 'introduction.html',
'team_recent_ship_create' => 'introduction.html',
'account_general_company_name' => 'introduction.html',
'account_general_currency' => 'introduction.html',
'employee_hiring_date' => 'manage/employee-management.html#hiring-date',
'employee_work_anniversaries' => 'manage/employee-management.html#work-anniversaries',
'one_on_ones' => 'introduction.html',
],
];
Binary file modified docs/img/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions tests/Unit/HelpCenterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ public function it_checks_that_links_that_point_to_the_help_center_are_valid():
$links = config('officelife.help_links');

foreach ($links as $key => $link) {
$url = config('officelife.help_center_url') . '/docs/' . $link;

$url = config('officelife.help_center_url').$link;
$ch = curl_init($url);

curl_setopt($ch, CURLOPT_NOBODY, true);
Expand Down

0 comments on commit 472d024

Please sign in to comment.