Skip to content

Conversation

ShayNehmad
Copy link
Contributor

@ShayNehmad ShayNehmad commented Jun 7, 2020

What is this?

Fixes #602.

Checklist

  • Have you added an explanation of what your changes do and why you'd like to include them?
  • Have you successfully tested your changes locally?
  • Is the TravisCI build passing?

Proof that it works

WIP picture:
image

Changes

Are the commit messages enough? If not, elaborate.

Still missing quite a lot of stuff like analytics and deployment scripts.
@ShayNehmad ShayNehmad added this to the 1.9.0 milestone Jun 7, 2020
@ShayNehmad ShayNehmad requested a review from VakarisZ June 7, 2020 18:48
@ShayNehmad ShayNehmad self-assigned this Jun 7, 2020
@ShayNehmad ShayNehmad marked this pull request as draft June 7, 2020 18:48
@codecov
Copy link

codecov bot commented Jun 7, 2020

Codecov Report

Merging #681 into develop will increase coverage by 2.91%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #681      +/-   ##
===========================================
+ Coverage    56.77%   59.68%   +2.91%     
===========================================
  Files          122      151      +29     
  Lines         4053     5155    +1102     
===========================================
+ Hits          2301     3077     +776     
- Misses        1752     2078     +326     
Impacted Files Coverage Δ
monkey/monkey_island/cc/environment/aws.py 80.95% <0.00%> (-19.05%) ⬇️
monkey/monkey_island/cc/environment/password.py 75.00% <0.00%> (-8.34%) ⬇️
monkey/monkey_island/cc/environment/standard.py 77.77% <0.00%> (-7.94%) ⬇️
monkey/monkey_island/cc/environment/testing.py 80.00% <0.00%> (-5.72%) ⬇️
...nfo_collectors/system_info_telemetry_dispatcher.py 89.47% <0.00%> (-0.19%) ⬇️
monkey/monkey_island/cc/testing/IslandTestCase.py 100.00% <0.00%> (ø)
...ollectors/test_system_info_telemetry_dispatcher.py 100.00% <0.00%> (ø)
...y/infection_monkey/telemetry/attack/t1064_telem.py 44.44% <0.00%> (ø)
...fo/windows_cred_collector/test_pypykatz_handler.py 100.00% <0.00%> (ø)
...fection_monkey/system_info/azure_cred_collector.py 22.22% <0.00%> (ø)
... and 29 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c28ff0...5f649ca. Read the comment docs.

@@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this .Name property and why do we replace "-"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just means that then you create a new page using the hugo new folder/some-file.md command, it creates a new page for you with the title Some file (space instead of -).

Example:

image

@ShayNehmad ShayNehmad marked this pull request as ready for review June 18, 2020 20:44
Copy link
Contributor

@VakarisZ VakarisZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't checked the contents in depth, but logic seems fine


##### `Error: Unable to locate config file or config directory. Perhaps you need to create a new site.`

What is your working directory? It should be `monkey/docs`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this could be avoided by explicitly specifying this in all cmd examples? Like instead of "Run hugo new folder/page.md." we could use "Run hugo new monkey/docs/folder/page.md"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather we not, because if you run that command inside the working dir it will work but not like you wanted


##### `failed to extract shortcode: template for shortcode "children" not found`

Have you ran `git submodule update`?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be moved to requirements?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be because theme is updated while working, so updated the title


#### Serve the documentation locally

Run `hugo server -D`. The server will be available locally at `http://localhost:1313/infectionmonkey/docs/`. You can change the content/theme and the site will refresh automatically to reflect your changes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me this is 404. The correct link is http://localhost:1313/.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, fixed

Made the homepage a lot more elegant with some custom HTML (new shortcode)
Copy link
Contributor

@VakarisZ VakarisZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a lot of screenshots have white background that matches site's background, we should change the stylesheets to add a black border to images by default

@@ -0,0 +1,12 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if we should have this page in prod. This adds nothing that config page doesn't explain

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather leave this section online and wait for your config PR - then we could improve this page (with example values and such)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not push it as draft?

@@ -0,0 +1,10 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we should have this page in prod. as this adds nothing that config page doesn't explain

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather leave this section online and wait for your config PR - then we could improve this page (with example values and such)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not push it as draft?

@ShayNehmad ShayNehmad merged commit c20158c into develop Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation framework
2 participants