Skip to content

Commit

Permalink
Use dynamic URL to simplify upgrading to latest CLICS version
Browse files Browse the repository at this point in the history
Doing this for the tex/doc files is much harder. The documentation still
refers to the old standard.
  • Loading branch information
vmcj committed Oct 31, 2023
1 parent 9dbe0f8 commit f691a60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion webapp/src/Command/ImportEventFeedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Command;

use App\Controller\API\GeneralInfoController as GI;
use App\Entity\Contest;
use App\Entity\ExternalContestSource;
use App\Entity\User;
Expand Down Expand Up @@ -51,7 +52,7 @@ protected function configure(): void
$this
->setHelp(
'Import contest data from an event feed following the Contest API specification:' . PHP_EOL .
'https://ccs-specs.icpc.io/2023-06/contest_api or any version starting from "2021-11"' . PHP_EOL . PHP_EOL .
GI::CCS_SPEC_API_URL . ' or any version starting from "2021-11"' . PHP_EOL . PHP_EOL .
'Note the following assumptions and caveats:' . PHP_EOL .
'- Configuration data will only be verified.' . PHP_EOL .
'- Team members will not be imported.' . PHP_EOL .
Expand Down
2 changes: 2 additions & 0 deletions webapp/src/Controller/Jury/JuryMiscController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Controller\Jury;

use App\Controller\API\GeneralInfoController as GI;
use App\Controller\BaseController;
use App\Entity\Contest;
use App\Entity\Judging;
Expand Down Expand Up @@ -45,6 +46,7 @@ public function indexAction(ConfigurationService $config): Response
{
return $this->render('jury/index.html.twig', [
'adminer_enabled' => $config->get('adminer_enabled'),
'CCS_SPEC_API_URL' => GI::CCS_SPEC_API_URL,
]);
}

Expand Down
2 changes: 1 addition & 1 deletion webapp/templates/jury/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<li><a href="{{ asset('doc/manual/html/index.html') }}">DOMjudge manual</a></li>
<li><a href="{{ asset('doc/manual/domjudge-team-manual.pdf') }}">Team manual <i class="fas fa-file-pdf"></i></a></li>
<li><a href="{{ path('app.swagger_ui') }}">API documentation</a><br />
See also the <a href="https://ccs-specs.icpc.io/2021-11/contest_api">ICPC Contest API</a>.</li>
See also the <a href="{{ CCS_SPEC_API_URL }}">ICPC Contest API</a>.</li>
</ul>
</div>
</div>
Expand Down

0 comments on commit f691a60

Please sign in to comment.